mirror of
https://github.com/meshtastic/web.git
synced 2026-04-20 13:58:44 -04:00
remove used imports and rename clickEventCb
This commit is contained in:
@@ -45,7 +45,7 @@ export const Channel = ({ channel }: SettingsPanelProps): JSX.Element => {
|
||||
});
|
||||
};
|
||||
|
||||
const clickEventCb = (e) => {
|
||||
const clickEvent = () => {
|
||||
setPass(
|
||||
btoa(
|
||||
cryptoRandomString({
|
||||
@@ -103,7 +103,7 @@ export const Channel = ({ channel }: SettingsPanelProps): JSX.Element => {
|
||||
devicePSKBitCount: bitCount ?? 0,
|
||||
properties: {
|
||||
value: pass,
|
||||
onClick: clickEventCb,
|
||||
onClick: clickEvent,
|
||||
changeEvent: (e: string) => setBits(Number.parseInt(e)),
|
||||
},
|
||||
},
|
||||
|
||||
@@ -10,9 +10,6 @@ import {
|
||||
SelectTrigger,
|
||||
SelectValue,
|
||||
} from "@components/UI/Select.js";
|
||||
import { fromByteArray, toByteArray } from "base64-js";
|
||||
import cryptoRandomString from "crypto-random-string";
|
||||
import { useState } from "react";
|
||||
|
||||
const generatorVariants = cva(
|
||||
"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus:outline-none focus:ring-2",
|
||||
|
||||
Reference in New Issue
Block a user