mirror of
https://github.com/meshtastic/web.git
synced 2026-03-13 11:27:33 -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)),
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user