File tree Expand file tree Collapse file tree
core/components/SessionHOC Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ Algumas validações importantes do sistema:
139139### Deploy e Hospedagem
140140
141141- Vercel
142- - Heroku
142+ - Render
143143
144144### Documentacao
145145
Original file line number Diff line number Diff line change 11'use client' ;
22
3- import React , { useCallback } from 'react' ;
3+ import React from 'react' ;
44import { useRouter } from 'next/navigation' ;
55
66import { Button , Text , Title } from '@/components/atoms' ;
@@ -13,8 +13,6 @@ const PageUnauthorized = () => {
1313
1414 const { t } = useTranslation ( ) ;
1515
16- const handleLogin = useCallback ( ( ) => router . push ( '/' ) , [ ] ) ;
17-
1816 return (
1917 < main data-testid = "p-401" className = "page-unauthorized" >
2018 < Header />
@@ -26,7 +24,7 @@ const PageUnauthorized = () => {
2624
2725 < Text variant = "fwReg-fs20-lh30-gray500" > { t ( 'specific.unauthorized.label.description' ) } </ Text >
2826
29- < Button variant = "gradient" onClick = { handleLogin } >
27+ < Button variant = "gradient" onClick = { ( ) => router . push ( '/' ) } >
3028 { t ( 'specific.unauthorized.label.facaLogin' ) }
3129 </ Button >
3230 </ main >
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export const withSessionHOC = <P extends object>(Component: ComponentType<P & Se
2727 if ( window . location . pathname === '/' ) {
2828 router . push ( '/' ) ;
2929 } else {
30- router . push ( '/401 ' ) ;
30+ router . push ( '/unauthorized ' ) ;
3131 }
3232 } else if ( ! loading && ! error && data . session && window . location . pathname === '/' ) {
3333 router . push ( '/welcome' ) ;
You can’t perform that action at this time.
0 commit comments