diff --git a/.saac/config.json b/.saac/config.json new file mode 100644 index 0000000..3a3d1ac --- /dev/null +++ b/.saac/config.json @@ -0,0 +1,7 @@ +{ + "applicationUuid": "7a82508b-9f93-46dc-acb4-f925182d7e30", + "applicationName": "shokuninmarche", + "subdomain": "shokuninmarche", + "domainSuffix": "startanaicompany.com", + "gitRepository": "https://git.startanaicompany.com/tester/shokuninmarche.git" +} diff --git a/client/src/App.tsx b/client/src/App.tsx index 638367b..934445a 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -8,6 +8,10 @@ import { Products } from '@/pages/Products' import { ProductDetail } from '@/pages/ProductDetail' import { CraftsmenList } from '@/pages/CraftsmenList' import { CraftsmanProfile } from '@/pages/CraftsmanProfile' +import { CartPage } from '@/pages/CartPage' +import { CheckoutPage } from '@/pages/CheckoutPage' +import { OrderHistoryPage } from '@/pages/OrderHistoryPage' +import { OrderDetailPage } from '@/pages/OrderDetailPage' import { useAuthStore } from '@/store/auth' function App() { @@ -28,6 +32,10 @@ function App() { } /> } /> } /> + } /> + } /> + } /> + } /> } /> diff --git a/client/src/components/Navbar.tsx b/client/src/components/Navbar.tsx index 948d792..ebd2782 100644 --- a/client/src/components/Navbar.tsx +++ b/client/src/components/Navbar.tsx @@ -1,11 +1,14 @@ import { Link, useNavigate } from 'react-router-dom' import { useAuthStore } from '@/store/auth' +import { useCartStore } from '@/store/cart' import { Button } from '@/components/ui/button' -import { ShoppingBag, User } from 'lucide-react' +import { ShoppingCart, User, ClipboardList } from 'lucide-react' export function Navbar() { const { user, logout } = useAuthStore() const navigate = useNavigate() + const { items } = useCartStore() + const cartCount = items.reduce((sum, item) => sum + item.quantity, 0) return (