diff --git a/src/components/High/Layout.tsx b/src/components/High/Layout.tsx index d2925f9d..865deadd 100644 --- a/src/components/High/Layout.tsx +++ b/src/components/High/Layout.tsx @@ -37,7 +37,7 @@ export default function Layout({user, children, className, navDisabled = false, />
{children} diff --git a/src/components/Low/Input.tsx b/src/components/Low/Input.tsx index 54860157..b9020d39 100644 --- a/src/components/Low/Input.tsx +++ b/src/components/Low/Input.tsx @@ -1,3 +1,4 @@ +import clsx from "clsx"; import {useState} from "react"; interface Props { @@ -6,12 +7,13 @@ interface Props { label?: string; placeholder?: string; defaultValue?: string; + className?: string; disabled?: boolean; name: string; onChange: (value: string) => void; } -export default function Input({type, label, placeholder, name, required = false, defaultValue, disabled = false, onChange}: Props) { +export default function Input({type, label, placeholder, name, required = false, defaultValue, className, disabled = false, onChange}: Props) { const [showPassword, setShowPassword] = useState(false); if (type === "password") { @@ -44,7 +46,7 @@ export default function Input({type, label, placeholder, name, required = false, } return ( -
+
{label && (