remove used imports and rename clickEventCb

This commit is contained in:
Hunter Thornsberry
2024-08-06 01:04:44 -04:00
parent 6bbe995ee5
commit faf094084c
2 changed files with 2 additions and 5 deletions

View File

@@ -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)),
},
},