From 6c1371ccd90e3c24f632d34ff9ff9652a2894836 Mon Sep 17 00:00:00 2001 From: Kenio de Souza Date: Wed, 12 Nov 2025 10:01:44 -0300 Subject: [PATCH] =?UTF-8?q?feat():=20Redirecionamento=20para=20a=20tela=20?= =?UTF-8?q?de=20clientes=20na=20p=C3=A1gina=20inicial?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(protected)/page.tsx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/app/(protected)/page.tsx b/src/app/(protected)/page.tsx index 465c684..472a299 100644 --- a/src/app/(protected)/page.tsx +++ b/src/app/(protected)/page.tsx @@ -1,3 +1,17 @@ +'use client'; // Necessário, pois usaremos hooks do React + +import { useEffect } from 'react'; +import { useRouter } from 'next/navigation'; + export default function Page() { - return
; -} \ No newline at end of file + const router = useRouter(); + + useEffect(() => { + + //REdireciona para a tela de clientes + router.replace('/administrativo/clientes'); + + }, [router]); + + return null; // Página em branco (não renderiza nada) +}