First Commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import Input from "@/src/components/twui/form/Input";
|
||||
import useFormInit from "@/src/hooks/use-form-init";
|
||||
import { type LoginFormObject } from "@/src/types";
|
||||
|
||||
export default function LoginFormEmailUsername({
|
||||
setForm,
|
||||
}: ReturnType<typeof useFormInit<LoginFormObject>>) {
|
||||
return (
|
||||
<Input
|
||||
type="email"
|
||||
placeholder="Email or Username"
|
||||
onChange={(e) => {
|
||||
setForm((prev) => ({
|
||||
...prev,
|
||||
username_or_email: e.target.value,
|
||||
}));
|
||||
}}
|
||||
showLabel
|
||||
required
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user