Skip to content

Commit f90b309

Browse files
authored
Develop (#33)
* Atualizando default value * Atualizando testes * Fix urls
1 parent 43e0eca commit f90b309

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/app/unauthorized/page.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import React, { useCallback } from 'react';
3+
import React from 'react';
44
import { useRouter } from 'next/navigation';
55

66
import { 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>

src/core/components/SessionHOC/sessionHOC.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)