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' && }