From b8b05b923fcdf589fe1ec0035cae458449719628 Mon Sep 17 00:00:00 2001 From: Pablo Lara Date: Mon, 7 Oct 2024 06:41:13 +0200 Subject: [PATCH] chore: tweak styles for Prowler logo in signIn page --- components/auth/auth-form.tsx | 8 +++-- components/icons/prowler/ProwlerIcons.tsx | 41 ++++++++++++----------- 2 files changed, 27 insertions(+), 22 deletions(-) diff --git a/components/auth/auth-form.tsx b/components/auth/auth-form.tsx index fe4e62f9d1..038a34dd6d 100644 --- a/components/auth/auth-form.tsx +++ b/components/auth/auth-form.tsx @@ -63,6 +63,10 @@ export const AuthForm = ({ type }: { type: string }) => { if (type === "sign-up") { const newUser = await createNewUser(data); + if (!newUser.errors) { + router.push("/sign-in"); + } + if (newUser?.errors && newUser.errors.length > 0) { newUser.errors.forEach((error: ApiError) => { const errorMessage = error.detail; @@ -109,8 +113,8 @@ export const AuthForm = ({ type }: { type: string }) => { {/* Auth Form */}
{/* Prowler Logo */} -
- +
+
diff --git a/components/icons/prowler/ProwlerIcons.tsx b/components/icons/prowler/ProwlerIcons.tsx index 0229c6e0b5..425788e88b 100644 --- a/components/icons/prowler/ProwlerIcons.tsx +++ b/components/icons/prowler/ProwlerIcons.tsx @@ -7,26 +7,27 @@ export const ProwlerExtended: React.FC = ({ width = 164, height, ...props -}) => ( - - - -); +}) => { + return ( + + + + ); +}; export const ProwlerShort: React.FC = ({ size,