Dialog replacement

This commit is contained in:
Sacha Weatherstone
2022-08-27 23:05:56 +10:00
parent dfd4481922
commit cacda7aa8b
6 changed files with 86 additions and 42 deletions
+9 -7
View File
@@ -5,7 +5,6 @@ import { fromByteArray } from "base64-js";
import {
Checkbox,
ClipboardIcon,
Dialog,
FormField,
IconButton,
majorScale,
@@ -17,6 +16,8 @@ import { QRCode } from "react-qrcode-logo";
import { Protobuf } from "@meshtastic/meshtasticjs";
import { Dialog } from "./index.js";
export interface QRDialogProps {
isOpen: boolean;
close: () => void;
@@ -53,12 +54,13 @@ export const QRDialog = ({
}, [channels, selectedChannels, loraConfig]);
return (
<Dialog
isShown={isOpen}
title="Generate QR Code"
onCloseComplete={close}
hasFooter={false}
>
// <Dialog
// isShown={isOpen}
//
// onCloseComplete={close}
// hasFooter={false}
// >
<Dialog isOpen={isOpen} close={close} title="Generate QR Code" background>
<Pane display="flex">
<FormField
width="12rem"