diff --git a/marketplace/src/layouts/Shell.tsx b/marketplace/src/layouts/Shell.tsx index b61ef40..d8ec97f 100644 --- a/marketplace/src/layouts/Shell.tsx +++ b/marketplace/src/layouts/Shell.tsx @@ -9,6 +9,8 @@ export function Shell({ children }: { children: React.ReactNode }) { const isOwner = user?.role === 'owner' || user?.role === 'seller' const isAdmin = user?.role === 'admin' + const profilePath = isAdmin ? '/dashboard/profile' : '/meu-perfil' + const settingsPath = isOwner ? '/company' : '/dashboard/profile' useEffect(() => { const handleClickOutside = (event: MouseEvent) => { @@ -61,49 +63,41 @@ export function Shell({ children }: { children: React.ReactNode }) { Checkout {user && ( -