From fba22a04fcfdd84c7737f0ae19a6bf309ed67cb2 Mon Sep 17 00:00:00 2001 From: "DESKTOP-CI67AM7\\shubh" Date: Fri, 11 Oct 2024 11:32:45 +0530 Subject: [PATCH] feedback email added in props --- src/pages/auth/signin.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/pages/auth/signin.tsx b/src/pages/auth/signin.tsx index 8d037d6..a7adbc9 100644 --- a/src/pages/auth/signin.tsx +++ b/src/pages/auth/signin.tsx @@ -36,7 +36,7 @@ const otpSchema = z.object({ otp: z.string({ required_error: 'OTP is required' }).length(5, { message: 'Invalid OTP' }), }); -export default function Home() { +export default function Home({ feedbackEmail }: { feedbackEmail: string }) { const [emailStatus, setEmailStatus] = useState<'idle' | 'sending' | 'success'>('idle'); const emailForm = useForm>({ @@ -170,7 +170,7 @@ export default function Home() { )}

Trouble logging in? contact -
hello@ossapps.dev +
{feedbackEmail}

@@ -180,6 +180,7 @@ export default function Home() { export const getServerSideProps: GetServerSideProps = async (context) => { const session = await getServerAuthSession(context); + const feedbackEmail = process.env.FEEDBACK_EMAIL; if (session) { return { @@ -191,6 +192,8 @@ export const getServerSideProps: GetServerSideProps = async (context) => { } return { - props: {}, + props: { + feedbackEmail, + }, }; };