WIP updates

This commit is contained in:
Sacha Weatherstone
2022-11-27 22:50:46 +10:00
parent a9561fe622
commit e457cef3da
79 changed files with 2100 additions and 1284 deletions
+17 -3
View File
@@ -4,7 +4,10 @@ import { Channel } from "@app/components/PageComponents/Channel.js";
import { Button } from "@components/Button.js";
import { TabbedContent, TabType } from "@components/layout/page/TabbedContent";
import { useDevice } from "@core/providers/useDevice.js";
import { QrCodeIcon } from "@heroicons/react/24/outline";
import {
ArrowDownOnSquareStackIcon,
QrCodeIcon
} from "@heroicons/react/24/outline";
import { Protobuf } from "@meshtastic/meshtasticjs";
export const ChannelsPage = (): JSX.Element => {
@@ -17,7 +20,7 @@ export const ChannelsPage = (): JSX.Element => {
: channel.config.role === Protobuf.Channel_Role.PRIMARY
? "Primary"
: `Channel: ${channel.config.index}`,
element: () => <Channel channel={channel.config} />,
element: () => <Channel channel={channel.config} />
};
});
@@ -25,6 +28,17 @@ export const ChannelsPage = (): JSX.Element => {
<TabbedContent
tabs={tabs}
actions={[
() => (
<Button
variant="secondary"
iconBefore={<ArrowDownOnSquareStackIcon className="w-4" />}
onClick={() => {
setQRDialogOpen(true);
}}
>
Import
</Button>
),
() => (
<Button
variant="secondary"
@@ -35,7 +49,7 @@ export const ChannelsPage = (): JSX.Element => {
>
QR Code
</Button>
),
)
]}
/>
);