From fd92564285554d47d719d765e17f822e97a50ad3 Mon Sep 17 00:00:00 2001
From: Samuel Rome
- Don't have an account? Sign up + Don't have an account? Sign up
> diff --git a/components/ui/AuthForms/ForgotPassword.tsx b/components/ui/AuthForms/ForgotPassword.tsx index bdf8f6b7e..52d441e75 100644 --- a/components/ui/AuthForms/ForgotPassword.tsx +++ b/components/ui/AuthForms/ForgotPassword.tsx @@ -10,16 +10,14 @@ import { useState } from 'react'; // Define prop type with allowEmail boolean interface ForgotPasswordProps { allowEmail: boolean; - redirectMethod: string; disableButton?: boolean; } export default function ForgotPassword({ allowEmail, - redirectMethod, disableButton }: ForgotPasswordProps) { - const router = redirectMethod === 'client' ? useRouter() : null; + const router = useRouter(); const [isSubmitting, setIsSubmitting] = useState(false); const handleSubmit = async (e: React.FormEvent- Don't have an account? Sign up + Don't have an account? Sign up
diff --git a/components/ui/AuthForms/PasswordSignIn.tsx b/components/ui/AuthForms/PasswordSignIn.tsx index 3ec8297d2..edba8afef 100644 --- a/components/ui/AuthForms/PasswordSignIn.tsx +++ b/components/ui/AuthForms/PasswordSignIn.tsx @@ -10,14 +10,12 @@ import React, { useState } from 'react'; // Define prop type with allowEmail boolean interface PasswordSignInProps { allowEmail: boolean; - redirectMethod: string; } export default function PasswordSignIn({ - allowEmail, - redirectMethod + allowEmail }: PasswordSignInProps) { - const router = redirectMethod === 'client' ? useRouter() : null; + const router = useRouter(); const [isSubmitting, setIsSubmitting] = useState(false); const handleSubmit = async (e: React.FormEvent- Don't have an account? Sign up + Don't have an account? Sign up
diff --git a/components/ui/AuthForms/Signup.tsx b/components/ui/AuthForms/Signup.tsx index cd98f0407..7ed6cb321 100644 --- a/components/ui/AuthForms/Signup.tsx +++ b/components/ui/AuthForms/Signup.tsx @@ -11,11 +11,10 @@ import { useState } from 'react'; // Define prop type with allowEmail boolean interface SignUpProps { allowEmail: boolean; - redirectMethod: string; } -export default function SignUp({ allowEmail, redirectMethod }: SignUpProps) { - const router = redirectMethod === 'client' ? useRouter() : null; +export default function SignUp({ allowEmail }: SignUpProps) { + const router = useRouter(); const [isSubmitting, setIsSubmitting] = useState(false); const handleSubmit = async (e: React.FormEvent