From 088e4b1d9281501362d6509a975d376af60abd93 Mon Sep 17 00:00:00 2001 From: Stivenjs Date: Thu, 22 May 2025 16:22:32 -0500 Subject: [PATCH 1/2] feat(auth): add 'use client' directive to AuthClient component This commit introduces the 'use client' directive at the top of the AuthClient.tsx file, indicating that the component is intended for client-side rendering. This change enhances the component's functionality and aligns it with the current architecture of the application. --- .../login/components/main-components/AuthClient.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/(setup-layout)/login/components/main-components/AuthClient.tsx b/app/(setup-layout)/login/components/main-components/AuthClient.tsx index ca47583c..390c7c58 100644 --- a/app/(setup-layout)/login/components/main-components/AuthClient.tsx +++ b/app/(setup-layout)/login/components/main-components/AuthClient.tsx @@ -1,3 +1,5 @@ +'use client' + import { AuthForm } from '@/app/(setup-layout)/login/components/main-components/AuthForm' import ImageSlider from '@/app/(setup-layout)/login/components/main-components/ImageSlider' From 844685a1d111e66ec159eea4edfe1c4f4538e787 Mon Sep 17 00:00:00 2001 From: Stivenjs Date: Thu, 22 May 2025 16:27:10 -0500 Subject: [PATCH 2/2] feat(login): set document title for login page and add 'use client' directive This commit updates the LoginPage component by adding a 'use client' directive and setting the document title to 'Creando tu cuenta | Fasttify' using the useEffect hook. These changes enhance the component's functionality and improve the user experience during the login process. --- app/(setup-layout)/login/page.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/(setup-layout)/login/page.tsx b/app/(setup-layout)/login/page.tsx index 1aadb3c8..858c74ac 100644 --- a/app/(setup-layout)/login/page.tsx +++ b/app/(setup-layout)/login/page.tsx @@ -1,9 +1,12 @@ -import AuthClient from '@/app/(setup-layout)/login/components/main-components/AuthClient' +'use client' -export const metadata = { - title: 'Creando tu cuenta', -} +import { useEffect } from 'react' +import AuthClient from '@/app/(setup-layout)/login/components/main-components/AuthClient' export default function LoginPage() { + useEffect(() => { + document.title = 'Creando tu cuenta | Fasttify' + }, []) + return }