diff --git a/client/src/App.tsx b/client/src/App.tsx index 5a15f5e..386f2b1 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -1,5 +1,6 @@ import { Route, Routes } from "react-router-dom"; +import { ForgotPasswordPage } from "@/pages/forgot-password/page"; import VerifyEmailPage from "@/pages/verify-email/page"; import PrivateGuard from "@/guards/private-guard"; import { AppRoutes } from "@/constants/routes"; @@ -20,6 +21,10 @@ function App() { } /> } /> + } + /> ); diff --git a/client/src/components/input.tsx b/client/src/components/input.tsx index 9b55b8a..a45857e 100644 --- a/client/src/components/input.tsx +++ b/client/src/components/input.tsx @@ -40,7 +40,7 @@ const Input = ({ const [obscure, setObscure] = useState(true); const [valid, setValid] = useState(false); - const isPasswod = type === "password"; + const isPassword = type === "password"; const hasInput = value.length > 0; useEffect(() => { @@ -75,7 +75,7 @@ const Input = ({ setValue(e.target.value)} - type={isPasswod ? (obscure ? "password" : "text") : type} + type={isPassword ? (obscure ? "password" : "text") : type} placeholder={placeholder} autoComplete={autoComplete} id={name?.toLowerCase() ?? label.toLowerCase()} @@ -84,7 +84,8 @@ const Input = ({ required={required} maxLength={maxLength} className={`w-full md:w-[400px] bg-background py-2.5 rounded-lg outline-none border ring-1 focus:ring-2 transition-all - placeholder-foreground/50 px-11 disabled:bg-opacity-25 disabled:border-primary/25 disabled:text-foreground/50 disabled:pointer-events-none + placeholder-foreground/50 disabled:bg-opacity-25 disabled:border-primary/25 disabled:text-foreground/50 disabled:pointer-events-none + ${isPassword ? "px-11" : "pl-11"} ${ hasInput ? valid @@ -96,7 +97,7 @@ const Input = ({
- {isPasswod && ( + {isPassword && (