From 05a371dfe49550d951d88e477d29e3b06c31af4d Mon Sep 17 00:00:00 2001 From: psiddharthdesign <107192927+psiddharthdesign@users.noreply.github.com> Date: Mon, 29 Jul 2024 14:18:29 +0530 Subject: [PATCH] minor improvements --- .../(dynamic-pages)/(authenticated-pages)/dashboard/page.tsx | 5 +---- src/app/(dynamic-pages)/(login-pages)/login/Login.tsx | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app/(dynamic-pages)/(authenticated-pages)/dashboard/page.tsx b/src/app/(dynamic-pages)/(authenticated-pages)/dashboard/page.tsx index 55f4b0a5..9da6bfa3 100644 --- a/src/app/(dynamic-pages)/(authenticated-pages)/dashboard/page.tsx +++ b/src/app/(dynamic-pages)/(authenticated-pages)/dashboard/page.tsx @@ -41,10 +41,7 @@ export default function DashboardPage() { > {initialOrgRedirectMutation.isLoading && ( Loading your dashboard... diff --git a/src/app/(dynamic-pages)/(login-pages)/login/Login.tsx b/src/app/(dynamic-pages)/(login-pages)/login/Login.tsx index d59707d8..836de502 100644 --- a/src/app/(dynamic-pages)/(login-pages)/login/Login.tsx +++ b/src/app/(dynamic-pages)/(login-pages)/login/Login.tsx @@ -54,6 +54,7 @@ export function Login({ onError: (errorPayload) => { console.error(errorPayload); }, + dismissOnSuccess: true, }); @@ -82,6 +83,7 @@ export function Login({ } }, successMessage: 'A magic link has been sent to your email!', + dismissOnSuccess: true, onSuccess: () => { setEmailSentSuccessMessage('A magic link has been sent to your email!'); }, @@ -109,6 +111,7 @@ export function Login({ } }, successMessage: 'Logged in!', + dismissOnSuccess: true, }, ); const providerMutation = useSAToastMutation( @@ -122,6 +125,7 @@ export function Login({ onSuccess: (payload) => { window.location.href = payload.data.url; }, + dismissOnSuccess: true, }, ); return (