diff --git a/src/components/Form/FormInput.tsx b/src/components/Form/FormInput.tsx index 27c3828b..ba9fb885 100644 --- a/src/components/Form/FormInput.tsx +++ b/src/components/Form/FormInput.tsx @@ -41,10 +41,14 @@ export function GenericInput({ render={({ field: { value, onChange, ...rest } }) => ( { diff --git a/src/components/Form/FormPasswordGenerator.tsx b/src/components/Form/FormPasswordGenerator.tsx index 4410097d..396d746c 100644 --- a/src/components/Form/FormPasswordGenerator.tsx +++ b/src/components/Form/FormPasswordGenerator.tsx @@ -3,9 +3,9 @@ import type { GenericFormElementProps, } from "@components/Form/DynamicForm.js"; import { Generator } from "@components/UI/Generator.js"; +import { Eye, EyeOff } from "lucide-react"; import type { ChangeEventHandler, MouseEventHandler } from "react"; import { useState } from "react"; -import { Eye, EyeOff } from "lucide-react"; import { Controller, type FieldValues } from "react-hook-form"; export interface PasswordGeneratorProps extends BaseFormBuilderProps { @@ -23,7 +23,6 @@ export function PasswordGenerator({ field, disabled, }: GenericFormElementProps>) { - const [passwordShown, setPasswordShown] = useState(false); const togglePasswordVisiblity = () => { setPasswordShown(passwordShown ? false : true); @@ -36,10 +35,14 @@ export function PasswordGenerator({ render={({ field: { value, ...rest } }) => ( { buttonClick: clickEvent, hide: true, properties: { - value: pass + value: pass, }, }, { diff --git a/src/index.css b/src/index.css index d9508cd3..8a35066d 100644 --- a/src/index.css +++ b/src/index.css @@ -99,4 +99,4 @@ img { -drag: none; -webkit-user-drag: none; -} \ No newline at end of file +} diff --git a/src/pages/Messages.tsx b/src/pages/Messages.tsx index 4e7fbae9..bc624a76 100644 --- a/src/pages/Messages.tsx +++ b/src/pages/Messages.tsx @@ -76,7 +76,7 @@ export const MessagesPage = (): JSX.Element => { chatType === "broadcast" && currentChannel ? getChannelName(currentChannel) : chatType === "direct" && nodes.get(activeChat) - ? nodes.get(activeChat)?.user?.longName ?? nodeHex + ? (nodes.get(activeChat)?.user?.longName ?? nodeHex) : "Loading..." }`} actions={