feat: add menu and event to show clients page, also add a basic clients page
This commit is contained in:
		| @@ -3,10 +3,10 @@ import { Drawer, List, ListItem, ListItemText, useMediaQuery } from '@mui/materi | ||||
| const menuOptions = { | ||||
|   public: ['Home', 'Explore', 'Contact'], | ||||
|   restricted: ['Dashboard', 'Projects', 'Support'], | ||||
|   private: ['Products', 'Provider', 'Categories', 'Users', 'Orders', 'Settings', 'Logout'], | ||||
|   private: ['Products', 'Clients', 'Categories', 'Users', 'Orders', 'Settings', 'Logout'], | ||||
| }; | ||||
|  | ||||
| export default function MenuDrawer({ zone = 'public', open, onClose }) { | ||||
| export default function MenuDrawer({ zone = 'public', open, onClose, onSelect }) { | ||||
|   const isMobile = useMediaQuery('(max-width:900px)'); | ||||
|   const items = menuOptions[zone]; | ||||
|  | ||||
| @@ -21,7 +21,10 @@ export default function MenuDrawer({ zone = 'public', open, onClose }) { | ||||
|     }}> | ||||
|       <List sx={{ width: isMobile ? '100vw' : 250, marginTop: 14 }}> | ||||
|         {items.map((text, index) => ( | ||||
|           <ListItem key={index} onClick={onClose}> | ||||
|           <ListItem key={index}  onClick={() => { | ||||
|               onClose(); // Close drawer | ||||
|               onSelect?.(text); // Notify parent of selected item | ||||
|             }}> | ||||
|             <ListItemText | ||||
|               primary={text} | ||||
|               slotProps={{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Rodolfo Ruiz
					Rodolfo Ruiz