diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index d0b02da..03206ad 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -5,12 +5,24 @@ import About from './components/About'; import Footer from './components/Footer'; import Products from './components/entity/product/Products'; import Login from './components/Login'; +import Cart from './components/Cart'; +import Checkout from './components/Checkout'; import { AuthProvider } from './context/AuthContext'; import { ThemeProvider } from './context/ThemeContext'; +import { CartProvider } from './context/CartContext'; import AdminProducts from './components/admin/AdminProducts'; import { useTheme } from './context/ThemeContext'; -// Wrapper component to apply theme classes +const ROUTE_PATHS = { + HOME: "/", + ABOUT: "/about", + PRODUCTS: "/products", + CART: "/cart", + CHECKOUT: "/checkout", + LOGIN: "/login", + ADMIN_PRODUCTS: "/admin/products" +}; + function ThemedApp() { const { darkMode } = useTheme(); @@ -20,11 +32,13 @@ function ThemedApp() {
- } /> - } /> - } /> - } /> - } /> + } /> + } /> + } /> + } /> + } /> + } /> + } />