diff --git a/marketplace/src/App.tsx b/marketplace/src/App.tsx index e853046..1575246 100644 --- a/marketplace/src/App.tsx +++ b/marketplace/src/App.tsx @@ -8,6 +8,7 @@ import { CompanyPage } from './pages/Company' import { SellerDashboardPage } from './pages/SellerDashboard' import { EmployeeDashboardPage } from './pages/EmployeeDashboard' import { DeliveryDashboardPage } from './pages/DeliveryDashboard' +import { MyProfilePage } from './pages/MyProfile' import { ProtectedRoute } from './components/ProtectedRoute' import { DashboardLayout } from './layouts/DashboardLayout' import { @@ -134,6 +135,14 @@ function App() { } /> + + + + } + /> } /> } /> diff --git a/marketplace/src/layouts/Shell.tsx b/marketplace/src/layouts/Shell.tsx index 6910a91..b61ef40 100644 --- a/marketplace/src/layouts/Shell.tsx +++ b/marketplace/src/layouts/Shell.tsx @@ -65,7 +65,7 @@ export function Shell({ children }: { children: React.ReactNode }) { {isProfileOpen && (
+ {isOwner && ( + setIsProfileOpen(false)} + > + Meu Perfil + + )} {isOwner && ( +
+
+

Meu Perfil

+

Acompanhe as informações básicas da sua conta.

+
+
+
+

Nome

+

{user?.name ?? 'Não informado'}

+
+
+

Perfil

+

{user?.role ?? 'Não informado'}

+
+
+

E-mail

+

{user?.email ?? 'Não informado'}

+
+
+

Usuário

+

{user?.username ?? 'Não informado'}

+
+
+
+ + ) +}