Seed: ecommerce template (24 files)
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
import { BrowserRouter, Routes, Route } from "react-router-dom";
|
||||
import { CartProvider } from "@/lib/cart-context";
|
||||
import IndexPage from "@/pages/Index";
|
||||
import ProductsPage from "@/pages/Products";
|
||||
import ProductDetailPage from "@/pages/ProductDetail";
|
||||
import CartPage from "@/pages/Cart";
|
||||
import CheckoutPage from "@/pages/Checkout";
|
||||
import AccountPage from "@/pages/Account";
|
||||
import SearchPage from "@/pages/Search";
|
||||
import OrderConfirmationPage from "@/pages/OrderConfirmation";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<BrowserRouter>
|
||||
<CartProvider>
|
||||
<Routes>
|
||||
<Route path="/" element={<IndexPage />} />
|
||||
<Route path="/products" element={<ProductsPage />} />
|
||||
<Route path="/product" element={<ProductDetailPage />} />
|
||||
<Route path="/cart" element={<CartPage />} />
|
||||
<Route path="/checkout" element={<CheckoutPage />} />
|
||||
<Route path="/account" element={<AccountPage />} />
|
||||
<Route path="/search" element={<SearchPage />} />
|
||||
<Route path="/order-confirmation" element={<OrderConfirmationPage />} />
|
||||
</Routes>
|
||||
</CartProvider>
|
||||
</BrowserRouter>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
Reference in New Issue
Block a user