forked from RiseUP/riseup_squad_03
modified: src/App.jsx
modified: src/components/AppShell.jsx modified: src/config/permissions.js modified: src/pages/PatientsPage.jsx
This commit is contained in:
11
src/App.jsx
11
src/App.jsx
@@ -181,7 +181,16 @@ function resolveRoute(pathname, navigate, role) {
|
||||
}
|
||||
}
|
||||
|
||||
if (pathname === '/camunicacao' || pathname === '/comunicacao' || pathname === '/mensagens') {
|
||||
if (pathname === '/camunicacao') {
|
||||
navigate('/comunicacao', { replace: true })
|
||||
return {
|
||||
element: <MessagesPage navigate={navigate} role={role} />,
|
||||
title: 'Comunicação',
|
||||
withShell: true,
|
||||
}
|
||||
}
|
||||
|
||||
if (pathname === '/comunicacao' || pathname === '/mensagens') {
|
||||
return {
|
||||
element: <MessagesPage navigate={navigate} role={role} />,
|
||||
title: 'Comunicação',
|
||||
|
||||
Reference in New Issue
Block a user