diff --git a/client/src/App.tsx b/client/src/App.tsx
index 30811c4..85c4508 100644
--- a/client/src/App.tsx
+++ b/client/src/App.tsx
@@ -2,6 +2,7 @@ import { Route, Routes } from "react-router-dom";
import { ForgotPasswordPage } from "@/pages/forgot-password/page";
import { ResetPasswordPage } from "@/pages/reset-password/page";
+import { ResendVerifyPage } from "@/pages/resend-verify/page";
import VerifyEmailPage from "@/pages/verify-email/page";
import PrivateGuard from "@/guards/private-guard";
import { AppRoutes } from "@/constants/routes";
@@ -21,6 +22,7 @@ function App() {
} />
} />
} />
+ } />
{
+ return (
+
+ );
+};
+
+export { ResendVerifyPage };
diff --git a/client/src/pages/sign-in/_components/sign-in-form.tsx b/client/src/pages/sign-in/_components/sign-in-form.tsx
index 98a5dc0..cecabab 100644
--- a/client/src/pages/sign-in/_components/sign-in-form.tsx
+++ b/client/src/pages/sign-in/_components/sign-in-form.tsx
@@ -17,7 +17,6 @@ import { Input } from "@/components/input";
const SignInForm = () => {
const navigate = useNavigate();
const { setEmail, setAuthorized } = useAuthStore();
-
const { mutate, isPending } = useMutation({
mutationKey: [SIGNINKEY],
mutationFn: AuthService.signIn,
@@ -26,7 +25,23 @@ const SignInForm = () => {
setAuthorized(true);
},
onError: (error: ErrorResponse) => {
- toast.error("Please verify to sign in");
+ toast.error("Please verify to sign in. Didn't get the code?", {
+ className: "gap-x-4",
+ actionButtonStyle: {
+ background: "rgb(var(--accent))",
+ color: "rgb(var(--foreground))",
+ padding: "16px",
+ marginLeft: "16px",
+ filter: `
+ drop-shadow(0 0px 25px rgb(var(--accent)))
+ drop-shadow(0 0px 50px rgb(var(--accent)))
+ `,
+ },
+ action: {
+ label: "Resend",
+ onClick: () => navigate(AppRoutes.ResendVerify),
+ },
+ });
if (error.status == 403) {
navigate(AppRoutes.VerifyEmail);