Skip to content

Commit

Permalink
remove used imports and rename clickEventCb
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunter275 committed Aug 6, 2024
1 parent 6bbe995 commit faf0940
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/PageComponents/Channel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const Channel = ({ channel }: SettingsPanelProps): JSX.Element => {
});
};

const clickEventCb = (e) => {
const clickEvent = () => {
setPass(
btoa(
cryptoRandomString({
Expand Down Expand Up @@ -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)),
},
},
Expand Down
3 changes: 0 additions & 3 deletions src/components/UI/Generator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit faf0940

Please sign in to comment.