Move plugins to settings page

This commit is contained in:
Sacha Weatherstone
2022-01-18 00:39:55 +11:00
parent b929ca0136
commit 161d432330
32 changed files with 834 additions and 1016 deletions
+56
View File
@@ -0,0 +1,56 @@
import React from 'react';
import { Modal } from '@components/generic/Modal';
import { Card } from '@meshtastic/components';
export interface VersionInfoProps {
visible: boolean;
onclose: () => void;
}
export const VersionInfo = ({
visible,
onclose,
}: VersionInfoProps): JSX.Element => {
// const { data } = useSWR<CommitHistory>(
// `query {
// repository(owner: "meshtastic", name: "meshtastic-web") {
// ref(qualifiedName: "master") {
// name
// target {
// ... on Commit {
// history(first: 4) {
// edges {
// node {
// abbreviatedOid
// message
// author {
// avatarUrl
// name
// }
// }
// }
// }
// }
// }
// }
// }
// }`,
// fetcher,
// );
// console.log(data);
return (
<Modal
open={visible}
onClose={(): void => {
onclose();
}}
>
<Card>
<div className="w-full max-w-3xl p-10">Version Info</div>
{/* {data?.sha} */}
</Card>
</Modal>
);
};