Update: ForgotPassword button in AuthModal
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { ToggleButton } from "../Layout/Button";
|
import { ToggleButton } from "../Layout/Button";
|
||||||
import { LogIn as LogInIcon, User as UserIcon } from "lucide-react";
|
import { LogIn as LogInIcon, User as UserIcon, CircleHelp as ForgotIcon} from "lucide-react";
|
||||||
import LoginForm from "./LoginForm";
|
import LoginForm from "./LoginForm";
|
||||||
import RegisterForm from "./RegisterForm";
|
import RegisterForm from "./RegisterForm";
|
||||||
|
import ForgotPasswordForm from "./ForgotPasswordForm";
|
||||||
import "../../assets/styles/auth.css";
|
import "../../assets/styles/auth.css";
|
||||||
|
|
||||||
interface AuthModalProps {
|
interface AuthModalProps {
|
||||||
@@ -55,6 +56,14 @@ const AuthModal: React.FC<AuthModalProps> = ({ onClose }) => {
|
|||||||
<UserIcon className="h-[40px] w-[40px] mr-1" />
|
<UserIcon className="h-[40px] w-[40px] mr-1" />
|
||||||
Register
|
Register
|
||||||
</ToggleButton>
|
</ToggleButton>
|
||||||
|
|
||||||
|
<ToggleButton
|
||||||
|
toggled={selectedTab==="Forgot"}
|
||||||
|
extraClasses="flex flex-col items-center px-8 duration-250 transition-transform hover:translate-y-[-50px] z-[9001]"
|
||||||
|
onClick={() => setSelectedTab("Forgot")}>
|
||||||
|
<ForgotIcon />
|
||||||
|
Forgot Password
|
||||||
|
</ToggleButton>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className="container fixed inset-0 flex flex-col items-center justify-around z-[9999]
|
className="container fixed inset-0 flex flex-col items-center justify-around z-[9999]
|
||||||
|
|||||||
Reference in New Issue
Block a user