From b279e8f9753e4ba7408a42493a2692d184d97e1d Mon Sep 17 00:00:00 2001 From: ruru <142723369+ruru-m07@users.noreply.github.com> Date: Wed, 24 Apr 2024 19:43:22 +0530 Subject: [PATCH] feat(ui): add password show input and fix submit button also i add login user name in dashboard. --- app/(public)/login/form.tsx | 13 ++++++-- app/(public)/signup/form.tsx | 13 ++++++-- app/dashboard/layout.tsx | 26 +-------------- components/ui/PasswordInput .tsx | 56 ++++++++++++++++++++++++++++++++ 4 files changed, 79 insertions(+), 29 deletions(-) create mode 100644 components/ui/PasswordInput .tsx diff --git a/app/(public)/login/form.tsx b/app/(public)/login/form.tsx index 16bf029..e922b44 100644 --- a/app/(public)/login/form.tsx +++ b/app/(public)/login/form.tsx @@ -6,9 +6,12 @@ import { Label } from '@/components/ui/label'; import { login } from '@/app/auth/01-auth'; import Link from 'next/link'; import { useFormState, useFormStatus } from 'react-dom'; +import { PasswordInput } from '@/components/ui/PasswordInput '; +import { useState } from 'react'; export function LoginForm() { const [state, action] = useFormState(login, undefined); + const [password, setPassword] = useState(''); return (