From 53e6223dab95410bd518bbda2d162df09a776f77 Mon Sep 17 00:00:00 2001 From: NANDO9322 Date: Fri, 20 Feb 2026 10:26:00 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20-=20ajuste=20na=20barra=20de=20rolagem?= =?UTF-8?q?=20no=20modal=20de=20novo=20usuario=20-=20ajuste=20no=20redirec?= =?UTF-8?q?ionamento=20para=20rota=20de=20perfil=20em=20ambiente=20mobile?= =?UTF-8?q?=20-=20ajuste=20no=20nome=20da=20fun=C3=A7ao=20do=20profissiona?= =?UTF-8?q?l=20na=20descricao=20do=20perfil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/components/Navbar.tsx | 9 +++++++-- frontend/contexts/AuthContext.tsx | 3 +++ frontend/pages/UserApproval.tsx | 22 +++++++++++++++------- frontend/types.ts | 1 + 4 files changed, 26 insertions(+), 9 deletions(-) diff --git a/frontend/components/Navbar.tsx b/frontend/components/Navbar.tsx index 4af6c98..e1dfa88 100644 --- a/frontend/components/Navbar.tsx +++ b/frontend/components/Navbar.tsx @@ -106,7 +106,12 @@ export const Navbar: React.FC = ({ onNavigate, currentPage }) => { if (!user) return ""; if (user.role === UserRole.BUSINESS_OWNER) return "Empresa"; if (user.role === UserRole.EVENT_OWNER) return "Cliente"; - if (user.role === UserRole.PHOTOGRAPHER) return "Fotógrafo"; + if (user.role === UserRole.PHOTOGRAPHER) { + if (user.functions && user.functions.length > 0) { + return user.functions[0].nome; + } + return "Profissional"; + } if (user.role === UserRole.SUPERADMIN) return "Super Admin"; if (user.role === UserRole.AGENDA_VIEWER) return "Visualizador"; if (user.role === UserRole.RESEARCHER) return "Pesquisa"; @@ -440,7 +445,7 @@ export const Navbar: React.FC = ({ onNavigate, currentPage }) => { user.role === UserRole.EVENT_OWNER) && (