From 9d1f3e81bbb9c0c366f5aaefdcc008de87ff1055 Mon Sep 17 00:00:00 2001 From: anoopkarnik Date: Sun, 2 Feb 2025 09:33:14 +0530 Subject: [PATCH] Solved few more reliability issues --- apps/nextjs-app/app/auth/error/page.tsx | 8 +------- apps/nextjs-app/app/auth/forgot-password/page.tsx | 12 ++---------- apps/nextjs-app/app/auth/login/page.tsx | 14 +------------- apps/nextjs-app/app/auth/new-verification/page.tsx | 7 +------ apps/nextjs-app/app/auth/register/page.tsx | 8 +------- apps/nextjs-app/app/auth/reset-password/page.tsx | 10 ++-------- packages/email/src/templates/ResetPassword.tsx | 4 +--- packages/ts-types/src/auth/v1.ts | 7 ------- .../organisms/custom/auth/v1/ErrorCard.tsx | 7 +++++-- .../custom/auth/v1/ForgotPasswordCard.tsx | 7 +++++-- .../organisms/custom/auth/v1/LoginCard.tsx | 11 +++++------ .../organisms/custom/auth/v1/RegisterCard.tsx | 10 ++++------ .../organisms/custom/auth/v1/ResetPasswordCard.tsx | 6 ++++-- .../organisms/custom/auth/v1/VerificationCard.tsx | 9 +++++---- .../organisms/custom/home/MyAccountSettings.tsx | 4 ++-- .../organisms/custom/home/NotificationCard.tsx | 4 ++-- .../organisms/custom/landing/v1/Pricing.tsx | 4 +--- .../organisms/custom/landing/v1/Services.tsx | 4 +--- .../organisms/custom/landing/v1/Team.tsx | 4 +--- .../src/components/templates/auth/v1/ErrorPage.tsx | 4 ++-- .../templates/auth/v1/ForgotPasswordPage.tsx | 4 ++-- .../src/components/templates/auth/v1/LoginPage.tsx | 4 ++-- .../templates/auth/v1/NewVerificationPage.tsx | 4 ++-- .../components/templates/auth/v1/RegisterPage.tsx | 4 ++-- .../templates/auth/v1/ResetPasswordPage.tsx | 4 ++-- 25 files changed, 56 insertions(+), 108 deletions(-) diff --git a/apps/nextjs-app/app/auth/error/page.tsx b/apps/nextjs-app/app/auth/error/page.tsx index a1f60dc..f58c90f 100644 --- a/apps/nextjs-app/app/auth/error/page.tsx +++ b/apps/nextjs-app/app/auth/error/page.tsx @@ -1,23 +1,17 @@ "use client" import ErrorPage from '@repo/ui/templates/auth/v1/ErrorPage' -import { useRouter } from 'next/navigation' import React from 'react' const ErrorTemp = () => { - const router = useRouter() - const quote = 'The only way to do great work is to love what you do.' const author = 'Late Steve Jobs' const credential = 'Ex CEO of Apple Inc.' const errorMessage = 'Oops! Something went wrong!' - const goToLoginPage = ()=>{ - router.push('/auth/login') - } return (
- +
) } diff --git a/apps/nextjs-app/app/auth/forgot-password/page.tsx b/apps/nextjs-app/app/auth/forgot-password/page.tsx index b783936..b001158 100644 --- a/apps/nextjs-app/app/auth/forgot-password/page.tsx +++ b/apps/nextjs-app/app/auth/forgot-password/page.tsx @@ -1,12 +1,11 @@ 'use client' -import { useRouter} from 'next/navigation' import React, {useState,useEffect } from 'react' import ForgotPasswordPage from '@repo/ui/templates/auth/v1/ForgotPasswordPage' import { ForgotPassword } from '../_actions/forgot-password' const ForgotPasswordClient = () => { - const router = useRouter() + const quote = 'The only way to do great work is to love what you do.' const author = 'Late Steve Jobs' @@ -16,10 +15,6 @@ const ForgotPasswordClient = () => { const [error, setError] = useState() const [success, setSuccess] = useState() - const goToLoginPage = ()=>{ - router.push('/auth/login') - } - const ResetPasswordFunction = async (email: string) => { if (success || error) return; try { @@ -31,13 +26,10 @@ const ForgotPasswordClient = () => { } } - useEffect(()=>{ - - },[success,error]) return (
-
) diff --git a/apps/nextjs-app/app/auth/login/page.tsx b/apps/nextjs-app/app/auth/login/page.tsx index 2cb3f93..03ecdf7 100644 --- a/apps/nextjs-app/app/auth/login/page.tsx +++ b/apps/nextjs-app/app/auth/login/page.tsx @@ -1,14 +1,13 @@ 'use client' import LoginPage from '@repo/ui/templates/auth/v1/LoginPage' -import { useRouter, useSearchParams } from 'next/navigation' +import { useSearchParams } from 'next/navigation' import React, { Suspense, useEffect, useState } from 'react' import { DEFAULT_LOGIN_REDIRECT } from '../../../routes' import { signIn } from 'next-auth/react' import { login } from '../_actions/login' const LoginContent = () => { - const router = useRouter() const searchParams = useSearchParams() const [urlError, setUrlError] = useState('') @@ -19,21 +18,12 @@ const LoginContent = () => { setUrlError('This email is already in use with another provider.') } }, [searchParams]) - const loginWithSocials = async (type: string) => { await signIn(type, { callbackUrl: DEFAULT_LOGIN_REDIRECT }) } - const goToForgotPasswordPage = () => { - router.push('/auth/forgot-password') - } - - const goToRegisterPage = () => { - router.push('/auth/register') - } - const title = 'Loading...' const description = 'Please wait while we are loading the page!' const quote = 'The only way to do great work is to love what you do.' @@ -59,8 +49,6 @@ const LoginContent = () => { onGoogleProviderSubmit={()=>loginWithSocials('google')} onGithubProviderSubmit={()=>loginWithSocials('github')} onLinkedinProviderSubmit={()=>loginWithSocials('linkedin')} - forgotPasswordFunction={goToForgotPasswordPage} - backFunction={goToRegisterPage} errorMessage={urlError} /> ) diff --git a/apps/nextjs-app/app/auth/new-verification/page.tsx b/apps/nextjs-app/app/auth/new-verification/page.tsx index a4f6be0..6971007 100644 --- a/apps/nextjs-app/app/auth/new-verification/page.tsx +++ b/apps/nextjs-app/app/auth/new-verification/page.tsx @@ -1,13 +1,12 @@ 'use client' import NewVerificationPage from '@repo/ui/templates/auth/v1/NewVerificationPage' -import { useRouter, useSearchParams } from 'next/navigation' +import { useSearchParams } from 'next/navigation' import React, { Suspense, useEffect, useState,useCallback } from 'react' import { newVerification } from '../_actions/new-verification' const NewVerificationContent = () => { - const router = useRouter(); const [error, setError] = useState() const [success, setSuccess] = useState() const searchParams = useSearchParams(); @@ -38,15 +37,11 @@ const NewVerificationContent = () => { const author = 'Late Steve Jobs' const credential = 'Ex CEO of Apple Inc.' - const goToLoginPage = () => { - router.push('/auth/login') - } return ( { - const router = useRouter() const searchParams = useSearchParams() const [urlError, setUrlError] = useState('') @@ -34,10 +33,6 @@ const RegisterContent = () => { await signIn(type, { callbackUrl: DEFAULT_LOGIN_REDIRECT }) } - const goToLoginPage = () => { - router.push('/auth/login') - } - return ( { onGoogleProviderSubmit={login} onGithubProviderSubmit={login} onLinkedinProviderSubmit={login} - backFunction={goToLoginPage} errorMessage={urlError} /> ) diff --git a/apps/nextjs-app/app/auth/reset-password/page.tsx b/apps/nextjs-app/app/auth/reset-password/page.tsx index 8ef19dd..bc60941 100644 --- a/apps/nextjs-app/app/auth/reset-password/page.tsx +++ b/apps/nextjs-app/app/auth/reset-password/page.tsx @@ -1,6 +1,6 @@ 'use client' -import { useRouter, useSearchParams } from 'next/navigation' +import { useSearchParams } from 'next/navigation' import React, { Suspense, useEffect, useState } from 'react' import ResetPasswordPage from '@repo/ui/templates/auth/v1/ResetPasswordPage' import { verifyResetToken } from '../_actions/verify-reset-token' @@ -10,7 +10,6 @@ import { DataResultProps } from '@repo/ts-types/auth/v1' const ResetPasswordContent = () => { - const router = useRouter(); const [error, setError] = useState('') const [success, setSuccess] = useState('') const searchParams = useSearchParams(); @@ -33,9 +32,6 @@ const ResetPasswordContent = () => { const author = 'Late Steve Jobs' const credential = 'Ex CEO of Apple Inc.' - const goToLoginPage = () => { - router.push('/auth/login') - } if (error){ return ( @@ -43,8 +39,7 @@ const ResetPasswordContent = () => { errorMessage={error} quote={quote} author={author} - credential={credential} - backFunction={goToLoginPage}/> + credential={credential}/> ) } else if (success){ @@ -53,7 +48,6 @@ const ResetPasswordContent = () => { errorMessage={error} successMessage={success} token={token as string} - backFunction={goToLoginPage} resetFunction={resetPassword} title={title} description={description} diff --git a/packages/email/src/templates/ResetPassword.tsx b/packages/email/src/templates/ResetPassword.tsx index 2c6a924..39014b8 100644 --- a/packages/email/src/templates/ResetPassword.tsx +++ b/packages/email/src/templates/ResetPassword.tsx @@ -57,9 +57,7 @@ const ResetPassword = ({ resetPasswordLink }: { resetPasswordLink: string }) => href="mailto:support@bsamaritan.com" className="text-green-500 underline" > - contact us - - . + contact us. diff --git a/packages/ts-types/src/auth/v1.ts b/packages/ts-types/src/auth/v1.ts index 5b91363..66e1e2a 100644 --- a/packages/ts-types/src/auth/v1.ts +++ b/packages/ts-types/src/auth/v1.ts @@ -33,8 +33,6 @@ export interface LoginCardProps { onGoogleProviderSubmit?: any; onGithubProviderSubmit?: any; onLinkedinProviderSubmit?: any; - forgotPasswordFunction?: any; - backFunction?:()=>void; errorMessage?:string; } @@ -48,7 +46,6 @@ export interface RegisterCardProps { onGoogleProviderSubmit?: any; onGithubProviderSubmit?: any; onLinkedinProviderSubmit?: any; - backFunction?:() => void; errorMessage?:string; } @@ -56,7 +53,6 @@ export interface VerificationCardProps { errorMessage?:string; successMessage?:string; token?: string; - backFunction?:() => void; resetFunction?:any; } @@ -64,7 +60,6 @@ export interface ResetPasswordCardProps { errorMessage?:string; successMessage?:string; token?: string; - backFunction?:() => void; resetFunction?:any; } @@ -74,12 +69,10 @@ export interface ForgotPasswordCardProps { errorMessage?:string; successMessage?:string; resetFunction?:any; - backFunction?:() => void; } export interface ErrorCardProps { errorMessage?:string; - backFunction?:any } //Complex Interfaces for Auth Pages diff --git a/packages/ui/src/components/organisms/custom/auth/v1/ErrorCard.tsx b/packages/ui/src/components/organisms/custom/auth/v1/ErrorCard.tsx index 06b5b2d..f365ae8 100644 --- a/packages/ui/src/components/organisms/custom/auth/v1/ErrorCard.tsx +++ b/packages/ui/src/components/organisms/custom/auth/v1/ErrorCard.tsx @@ -2,8 +2,11 @@ import { Card, CardFooter, CardHeader } from '../../../../molecules/shadcn/card import { BsExclamationTriangle } from 'react-icons/bs'; import { ErrorCardProps } from '@repo/ts-types/auth/v1'; import { Button } from '../../../../atoms/shadcn/button'; +import { useRouter } from 'next/navigation'; -const ErrorCard = ({errorMessage,backFunction}:ErrorCardProps) => { +const ErrorCard = ({errorMessage}:ErrorCardProps) => { + + const router = useRouter(); return ( @@ -14,7 +17,7 @@ const ErrorCard = ({errorMessage,backFunction}:ErrorCardProps) => {
{errorMessage || "Oops! Something went wrong!"}
- diff --git a/packages/ui/src/components/organisms/custom/auth/v1/ForgotPasswordCard.tsx b/packages/ui/src/components/organisms/custom/auth/v1/ForgotPasswordCard.tsx index 3cde4e5..76e1048 100644 --- a/packages/ui/src/components/organisms/custom/auth/v1/ForgotPasswordCard.tsx +++ b/packages/ui/src/components/organisms/custom/auth/v1/ForgotPasswordCard.tsx @@ -17,8 +17,9 @@ import { import { Input } from '../../../../atoms/shadcn/input'; import { FormResult } from './FormResult'; import { ForgotPasswordCardProps } from '@repo/ts-types/auth/v1'; +import { useRouter } from 'next/navigation'; -const ForgotPasswordCard = ({errorMessage,successMessage,resetFunction,backFunction} +const ForgotPasswordCard = ({errorMessage,successMessage,resetFunction} :ForgotPasswordCardProps ) => { const form = useForm>({ @@ -44,6 +45,8 @@ const ForgotPasswordCard = ({errorMessage,successMessage,resetFunction,backFunct }); } + const router = useRouter(); + return ( @@ -71,7 +74,7 @@ const ForgotPasswordCard = ({errorMessage,successMessage,resetFunction,backFunct - diff --git a/packages/ui/src/components/organisms/custom/auth/v1/LoginCard.tsx b/packages/ui/src/components/organisms/custom/auth/v1/LoginCard.tsx index f04a6df..8c89ae7 100644 --- a/packages/ui/src/components/organisms/custom/auth/v1/LoginCard.tsx +++ b/packages/ui/src/components/organisms/custom/auth/v1/LoginCard.tsx @@ -22,7 +22,7 @@ import { LoginCardProps } from '@repo/ts-types/auth/v1'; import { useRouter } from 'next/navigation'; const LoginCard = ({showEmail,showGoogleProvider,showGithubProvider,showLinkedinProvider,onEmailSubmit, - onGoogleProviderSubmit,onGithubProviderSubmit,onLinkedinProviderSubmit,forgotPasswordFunction,backFunction,errorMessage} + onGoogleProviderSubmit,onGithubProviderSubmit,onLinkedinProviderSubmit,errorMessage} :LoginCardProps ) => { const form = useForm>({ @@ -106,7 +106,7 @@ const LoginCard = ({showEmail,showGoogleProvider,showGithubProvider,showLinkedin )}/> - + @@ -123,7 +123,7 @@ const LoginCard = ({showEmail,showGoogleProvider,showGithubProvider,showLinkedin - @@ -132,9 +132,8 @@ const LoginCard = ({showEmail,showGoogleProvider,showGithubProvider,showLinkedin By signing up, you agree to our - , + diff --git a/packages/ui/src/components/organisms/custom/auth/v1/RegisterCard.tsx b/packages/ui/src/components/organisms/custom/auth/v1/RegisterCard.tsx index b709801..bf6d648 100644 --- a/packages/ui/src/components/organisms/custom/auth/v1/RegisterCard.tsx +++ b/packages/ui/src/components/organisms/custom/auth/v1/RegisterCard.tsx @@ -21,8 +21,7 @@ import { FormResult } from './FormResult'; import { RegisterCardProps } from '@repo/ts-types/auth/v1'; import { useRouter } from 'next/navigation'; const RegisterCard = ({showEmail,showGoogleProvider,showGithubProvider,showLinkedinProvider, - onEmailSubmit,onGoogleProviderSubmit,onGithubProviderSubmit,onLinkedinProviderSubmit,backFunction, - errorMessage}:RegisterCardProps + onEmailSubmit,onGoogleProviderSubmit,onGithubProviderSubmit,onLinkedinProviderSubmit, errorMessage}:RegisterCardProps ) => { const form = useForm>({ resolver: zodResolver(RegisterSchema), @@ -99,7 +98,7 @@ const RegisterCard = ({showEmail,showGoogleProvider,showGithubProvider,showLinke {showLinkedinProvider && } - @@ -107,9 +106,8 @@ const RegisterCard = ({showEmail,showGoogleProvider,showGithubProvider,showLinke By signing up, you agree to our - , + diff --git a/packages/ui/src/components/organisms/custom/auth/v1/ResetPasswordCard.tsx b/packages/ui/src/components/organisms/custom/auth/v1/ResetPasswordCard.tsx index 15e0ad1..7cf2e8d 100644 --- a/packages/ui/src/components/organisms/custom/auth/v1/ResetPasswordCard.tsx +++ b/packages/ui/src/components/organisms/custom/auth/v1/ResetPasswordCard.tsx @@ -15,8 +15,9 @@ import {z} from "zod" import { zodResolver } from '@hookform/resolvers/zod'; import { useState, useTransition } from 'react'; import { Input } from '../../../../atoms/shadcn/input'; +import { useRouter } from 'next/navigation'; -const ResetPasswordCard = ({errorMessage,successMessage,token,resetFunction,backFunction}:ResetPasswordCardProps) => { +const ResetPasswordCard = ({errorMessage,successMessage,token,resetFunction}:ResetPasswordCardProps) => { const form = useForm>({ resolver: zodResolver(ResetPasswordSchema), defaultValues:{ @@ -39,6 +40,7 @@ const ResetPasswordCard = ({errorMessage,successMessage,token,resetFunction,back }) }) } + const router = useRouter(); return ( @@ -66,7 +68,7 @@ const ResetPasswordCard = ({errorMessage,successMessage,token,resetFunction,back -
Go to Login Page
+
) diff --git a/packages/ui/src/components/organisms/custom/auth/v1/VerificationCard.tsx b/packages/ui/src/components/organisms/custom/auth/v1/VerificationCard.tsx index 104db50..7f95f85 100644 --- a/packages/ui/src/components/organisms/custom/auth/v1/VerificationCard.tsx +++ b/packages/ui/src/components/organisms/custom/auth/v1/VerificationCard.tsx @@ -3,9 +3,10 @@ import { Card, CardContent, CardFooter, CardHeader } from '../../../../molecules import { BeatLoader } from 'react-spinners'; import { VerificationCardProps } from '@repo/ts-types/auth/v1'; +import { useRouter } from 'next/navigation'; -const VerificationCard = ({errorMessage,successMessage,backFunction}:VerificationCardProps) => { - +const VerificationCard = ({errorMessage,successMessage}:VerificationCardProps) => { + const router = useRouter(); return ( @@ -22,9 +23,9 @@ const VerificationCard = ({errorMessage,successMessage,backFunction}:Verificatio -
+
+
) diff --git a/packages/ui/src/components/organisms/custom/home/MyAccountSettings.tsx b/packages/ui/src/components/organisms/custom/home/MyAccountSettings.tsx index ecacaf0..9bf000c 100644 --- a/packages/ui/src/components/organisms/custom/home/MyAccountSettings.tsx +++ b/packages/ui/src/components/organisms/custom/home/MyAccountSettings.tsx @@ -151,10 +151,10 @@ import { useToast } from "../../../../hooks/use-toast"; {user?.name?user?.name[0]?.toUpperCase() :'U'} -
+
+ {/* Hidden file input */} { return ( -
T
{notification?.message}
{getRelativeTime(notification?.createdAt)}
-
+ ) } diff --git a/packages/ui/src/components/organisms/custom/landing/v1/Pricing.tsx b/packages/ui/src/components/organisms/custom/landing/v1/Pricing.tsx index 5f92668..fcef2b5 100644 --- a/packages/ui/src/components/organisms/custom/landing/v1/Pricing.tsx +++ b/packages/ui/src/components/organisms/custom/landing/v1/Pricing.tsx @@ -11,9 +11,7 @@ const Pricing = ({pricingList,supportEmailAddress}: {pricingList: PricingProps[] className="container py-24 sm:py-32 relative" >

- Get - Premium - Access + Get Premium Access

It's all available for free. You can contact us for any customized solution based on this boilerplate code, you want to implement. diff --git a/packages/ui/src/components/organisms/custom/landing/v1/Services.tsx b/packages/ui/src/components/organisms/custom/landing/v1/Services.tsx index 9e0576d..13445b1 100644 --- a/packages/ui/src/components/organisms/custom/landing/v1/Services.tsx +++ b/packages/ui/src/components/organisms/custom/landing/v1/Services.tsx @@ -10,9 +10,7 @@ export const Services = ({services}:{services:ServiceProps[]}) => {

- - Client-Centric - Services + Client-Centric Services

diff --git a/packages/ui/src/components/organisms/custom/landing/v1/Team.tsx b/packages/ui/src/components/organisms/custom/landing/v1/Team.tsx index 8d6afb0..2c17b4f 100644 --- a/packages/ui/src/components/organisms/custom/landing/v1/Team.tsx +++ b/packages/ui/src/components/organisms/custom/landing/v1/Team.tsx @@ -37,9 +37,7 @@ export const Team = ({teamList}:{teamList:TeamProps[]}) => { className="container py-24 sm:py-32 space-y-8 relative" >

- - Our Dedicated - Crew + Our Dedicated Crew

diff --git a/packages/ui/src/components/templates/auth/v1/ErrorPage.tsx b/packages/ui/src/components/templates/auth/v1/ErrorPage.tsx index 0c21d1c..1b1d950 100644 --- a/packages/ui/src/components/templates/auth/v1/ErrorPage.tsx +++ b/packages/ui/src/components/templates/auth/v1/ErrorPage.tsx @@ -4,12 +4,12 @@ import {ErrorPageProps} from '@repo/ts-types/auth/v1' import ErrorCard from '../../../organisms/custom/auth/v1/ErrorCard' import Quote from '../../../organisms/custom/auth/v1/Quote' -const ErrorPage = ({errorMessage,backFunction,quote,author,credential}:ErrorPageProps) => { +const ErrorPage = ({errorMessage,quote,author,credential}:ErrorPageProps) => { return (

- +
diff --git a/packages/ui/src/components/templates/auth/v1/ForgotPasswordPage.tsx b/packages/ui/src/components/templates/auth/v1/ForgotPasswordPage.tsx index 2690912..e3fd595 100644 --- a/packages/ui/src/components/templates/auth/v1/ForgotPasswordPage.tsx +++ b/packages/ui/src/components/templates/auth/v1/ForgotPasswordPage.tsx @@ -4,12 +4,12 @@ import Quote from '../../../organisms/custom/auth/v1/Quote' import { ForgotPasswordPageProps } from '@repo/ts-types/auth/v1'; import ForgotPasswordCard from '../../../organisms/custom/auth/v1/ForgotPasswordCard'; -const ForgotPasswordPage = ({successMessage,errorMessage,resetFunction,title,description,backFunction,quote,author,credential}:ForgotPasswordPageProps) => { +const ForgotPasswordPage = ({successMessage,errorMessage,resetFunction,title,description,quote,author,credential}:ForgotPasswordPageProps) => { return (
}> - +
diff --git a/packages/ui/src/components/templates/auth/v1/LoginPage.tsx b/packages/ui/src/components/templates/auth/v1/LoginPage.tsx index 2da808a..ed42279 100644 --- a/packages/ui/src/components/templates/auth/v1/LoginPage.tsx +++ b/packages/ui/src/components/templates/auth/v1/LoginPage.tsx @@ -5,7 +5,7 @@ import Quote from '../../../organisms/custom/auth/v1/Quote' import { LoginPageProps } from '@repo/ts-types/auth/v1'; const LoginPage = ({showEmail,showGoogleProvider,showGithubProvider,showLinkedinProvider,onEmailSubmit,onGoogleProviderSubmit, - onGithubProviderSubmit,onLinkedinProviderSubmit,forgotPasswordFunction,backFunction,errorMessage,title,description, + onGithubProviderSubmit,onLinkedinProviderSubmit,errorMessage,title,description, quote,author,credential}:LoginPageProps) => { return (
@@ -14,7 +14,7 @@ const LoginPage = ({showEmail,showGoogleProvider,showGithubProvider,showLinkedin + errorMessage={errorMessage}/>
diff --git a/packages/ui/src/components/templates/auth/v1/NewVerificationPage.tsx b/packages/ui/src/components/templates/auth/v1/NewVerificationPage.tsx index c5d32e8..d298561 100644 --- a/packages/ui/src/components/templates/auth/v1/NewVerificationPage.tsx +++ b/packages/ui/src/components/templates/auth/v1/NewVerificationPage.tsx @@ -4,12 +4,12 @@ import Quote from '../../../organisms/custom/auth/v1/Quote' import VerificationCard from '../../../organisms/custom/auth/v1/VerificationCard' import { VerificationPageProps } from '@repo/ts-types/auth/v1' -const NewVerificationPage = ({errorMessage,successMessage,backFunction,title,description,quote,author,credential}:VerificationPageProps) => { +const NewVerificationPage = ({errorMessage,successMessage,title,description,quote,author,credential}:VerificationPageProps) => { return (
}> - +
diff --git a/packages/ui/src/components/templates/auth/v1/RegisterPage.tsx b/packages/ui/src/components/templates/auth/v1/RegisterPage.tsx index 6218ebc..1e02232 100644 --- a/packages/ui/src/components/templates/auth/v1/RegisterPage.tsx +++ b/packages/ui/src/components/templates/auth/v1/RegisterPage.tsx @@ -7,7 +7,7 @@ import RegisterCard from '../../../organisms/custom/auth/v1/RegisterCard' const RegisterPage = ({title,description,quote,author,credential,showEmail,showGoogleProvider,showGithubProvider, showLinkedinProvider,onEmailSubmit,onGoogleProviderSubmit,onGithubProviderSubmit, - onLinkedinProviderSubmit,backFunction,errorMessage}:RegisterPageProps) => { + onLinkedinProviderSubmit,errorMessage}:RegisterPageProps) => { return (
@@ -16,7 +16,7 @@ const RegisterPage = ({title,description,quote,author,credential,showEmail,showG showGoogleProvider={showGoogleProvider} showGithubProvider={showGithubProvider} showLinkedinProvider={showLinkedinProvider} onEmailSubmit={onEmailSubmit} onGoogleProviderSubmit={onGoogleProviderSubmit} onGithubProviderSubmit={onGithubProviderSubmit} - onLinkedinProviderSubmit={onLinkedinProviderSubmit} backFunction={backFunction} errorMessage={errorMessage}/> + onLinkedinProviderSubmit={onLinkedinProviderSubmit} errorMessage={errorMessage}/>
diff --git a/packages/ui/src/components/templates/auth/v1/ResetPasswordPage.tsx b/packages/ui/src/components/templates/auth/v1/ResetPasswordPage.tsx index a38f791..a0d2575 100644 --- a/packages/ui/src/components/templates/auth/v1/ResetPasswordPage.tsx +++ b/packages/ui/src/components/templates/auth/v1/ResetPasswordPage.tsx @@ -4,12 +4,12 @@ import Quote from '../../../organisms/custom/auth/v1/Quote' import { ResetPasswordPageProps} from '@repo/ts-types/auth/v1' import ResetPasswordCard from '../../../organisms/custom/auth/v1/ResetPasswordCard' -const ResetPasswordPage = ({errorMessage,successMessage,token,backFunction,resetFunction,title,description,quote,author,credential}:ResetPasswordPageProps) => { +const ResetPasswordPage = ({errorMessage,successMessage,token,resetFunction,title,description,quote,author,credential}:ResetPasswordPageProps) => { return (
}> -