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
+4 -4
View File
@@ -24,7 +24,7 @@ export const QRDialog = ({
isOpen,
close,
loraConfig,
channels,
channels
}: QRDialogProps): JSX.Element => {
const [selectedChannels, setSelectedChannels] = useState<number[]>([0]);
const [QRCodeURL, setQRCodeURL] = useState<string>("");
@@ -37,7 +37,7 @@ export const QRDialog = ({
const encoded = Protobuf.ChannelSet.toBinary(
Protobuf.ChannelSet.create({
loraConfig,
settings: channelsToEncode,
settings: channelsToEncode
})
);
const base64 = fromByteArray(encoded)
@@ -94,7 +94,7 @@ export const QRDialog = ({
} else {
setSelectedChannels([
...selectedChannels,
channel.index,
channel.index
]);
}
}}
@@ -114,7 +114,7 @@ export const QRDialog = ({
action() {
void navigator.clipboard.writeText(QRCodeURL);
toast.success("Copied URL to Clipboard");
},
}
}}
/>
</div>