modified: src/App.jsx

modified:   src/components/AppShell.jsx
modified:   src/config/permissions.js
modified:   src/pages/PatientsPage.jsx
This commit is contained in:
2026-05-06 17:49:52 -03:00
parent 666b3b5c0e
commit 9335e974eb
4 changed files with 16 additions and 8 deletions

View File

@@ -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',