From f4d7f86d1b8e150c34a7ff04123d36d56ccce25c Mon Sep 17 00:00:00 2001 From: Rodolfo Ruiz Date: Wed, 11 Jun 2025 17:27:52 -0600 Subject: [PATCH] feat: add menu and event to show clients page, also add a basic clients page --- src/App.jsx | 15 ++-- src/components/AppHeader.jsx | 9 ++- src/components/MenuDrawer.jsx | 9 ++- src/private/clients/Clients.jsx | 118 ++++++++++++++++++++++++++++++++ 4 files changed, 140 insertions(+), 11 deletions(-) create mode 100644 src/private/clients/Clients.jsx diff --git a/src/App.jsx b/src/App.jsx index a5f8972..cca2356 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,14 +1,15 @@ import { useState } from 'react' +import './App.css' import AppHeader from './components/AppHeader'; import Footer from './components/Footer'; import Box from '@mui/material/Box'; import Products from './private/products/Products'; - -import './App.css' +import Clients from './private/clients/Clients'; function App() { const [zone, setZone] = useState('public'); // Could be 'public' | 'restricted' | 'private' + const [currentView, setCurrentView] = useState('Products'); return ( <> @@ -20,13 +21,15 @@ function App() { }} > - + setCurrentView(view)} /> {/* Main content area */} - {zone === 'private' && } - {zone === 'restricted' && } - {zone === 'public' && } + {zone === 'private' && } + {zone === 'restricted' && } + + {zone === 'public' && currentView === 'Products' && } + {zone === 'public' && currentView === 'Clients' && }