From 03022206ae2a887e2c631f8dfd649fdae269ee9a Mon Sep 17 00:00:00 2001 From: Rodolfo Ruiz Date: Tue, 24 Jun 2025 21:08:22 -0600 Subject: [PATCH] feat: add action class to connect the api mongo - getAll --- src/App.jsx | 2 + src/api/actions.jsx | 13 +++ src/components/MenuDrawer.jsx | 4 + src/private/mongo/AddOrEditAdminForm.jsx | 93 +++++++++++++++ src/private/mongo/Admin.jsx | 143 +++++++++++++++++++++++ 5 files changed, 255 insertions(+) create mode 100644 src/api/actions.jsx create mode 100644 src/private/mongo/AddOrEditAdminForm.jsx create mode 100644 src/private/mongo/Admin.jsx diff --git a/src/App.jsx b/src/App.jsx index c3678f2..637671e 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -8,6 +8,7 @@ import Products from './private/products/Products'; import Clients from './private/clients/Clients'; import Providers from './private/providers/Providers'; import Categories from './private/categories/Categories'; +import Admin from './private/mongo/Admin'; function App() { const [zone, setZone] = useState('public'); // Could be 'public' | 'restricted' | 'private' @@ -34,6 +35,7 @@ function App() { {zone === 'public' && currentView === 'Clients' && } {zone === 'public' && currentView === 'Providers' && } {zone === 'public' && currentView === 'Categories' && } + {zone === 'public' && currentView === 'Admin' && }