mirror of
https://github.com/Ravinou/borgwarehouse
synced 2026-03-14 14:25:46 +01:00
refactor: ⚡ watcher on login form is not used anymore
This commit is contained in:
parent
25022778b9
commit
e4f694d383
1 changed files with 1 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ type LoginForm = {
|
|||
|
||||
export default function Login() {
|
||||
const { status } = useSession();
|
||||
const { register, handleSubmit, reset, setFocus, watch } = useForm<LoginForm>();
|
||||
const { register, handleSubmit, reset, setFocus } = useForm<LoginForm>();
|
||||
const router = useRouter();
|
||||
const toastOptions: ToastOptions = {
|
||||
position: 'top-center',
|
||||
|
|
@ -50,8 +50,6 @@ export default function Login() {
|
|||
return;
|
||||
}
|
||||
|
||||
const isFormComplete = watch('username') && watch('password');
|
||||
|
||||
//Functions
|
||||
const formSubmitHandler = async (data: LoginForm) => {
|
||||
start();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue