From f90b3093c036f61651037776788c70ac3f7d29a2 Mon Sep 17 00:00:00 2001 From: Matheus Gomes Date: Tue, 16 Apr 2024 12:38:49 -0300 Subject: [PATCH] Develop (#33) * Atualizando default value * Atualizando testes * Fix urls --- README.md | 2 +- src/app/unauthorized/page.tsx | 6 ++---- src/core/components/SessionHOC/sessionHOC.tsx | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ddb1209..c09b95d 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ Algumas validações importantes do sistema: ### Deploy e Hospedagem - Vercel -- Heroku +- Render ### Documentacao diff --git a/src/app/unauthorized/page.tsx b/src/app/unauthorized/page.tsx index 00879c9..12ac665 100644 --- a/src/app/unauthorized/page.tsx +++ b/src/app/unauthorized/page.tsx @@ -1,6 +1,6 @@ 'use client'; -import React, { useCallback } from 'react'; +import React from 'react'; import { useRouter } from 'next/navigation'; import { Button, Text, Title } from '@/components/atoms'; @@ -13,8 +13,6 @@ const PageUnauthorized = () => { const { t } = useTranslation(); - const handleLogin = useCallback(() => router.push('/'), []); - return (
@@ -26,7 +24,7 @@ const PageUnauthorized = () => { {t('specific.unauthorized.label.description')} -
diff --git a/src/core/components/SessionHOC/sessionHOC.tsx b/src/core/components/SessionHOC/sessionHOC.tsx index 1d62a58..b7a9f51 100644 --- a/src/core/components/SessionHOC/sessionHOC.tsx +++ b/src/core/components/SessionHOC/sessionHOC.tsx @@ -27,7 +27,7 @@ export const withSessionHOC =

(Component: ComponentType