-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathApp.jsx
109 lines (96 loc) · 4.75 KB
/
App.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import { useEffect } from "react";
import { Routes, Route, useLocation } from "react-router-dom";
import Header from "./components/Home/Header/Header";
import Footer from "./components/Home/Footer/Footer";
import BlogHome from "./pages/Blog";
import ReturnPolicy from "./pages/cancellation";
import DivaCoins from "./pages/DivaCoins";
// import DivueensCSR from "./pages/DivueensCSR";
import Home from "./pages/Home";
import ProductList from "./pages/ProductList";
import TeamSection from "./pages/TeamSection";
import TermsAndConditions from "./pages/TermsAndConditions";
import PrivacyPolicy from "./pages/Privacy";
import HelpCenter from "./pages/HelpCenter";
import FaqsPage from "./pages/FAQ";
import SpecialOffer from "./pages/SpecialOffer";
// import ProductDetails from "./pages/ProductDetails";
import ProductDetails from './components/ProductDescription/[id]/ProductDetails'
import WhoWeAre from "./components/Who we are/WhoWeAre";
import StoreLocator from "./components/StoreLocator/StoreLocator";
import MemberShip from "./pages/MemberShip";
import VirtualTryOnPage from "./pages/VirtualTryOnPage";
import Sell from "./pages/sellOnDivueens";
import OrderDetails from "./pages/OrderDetails";
import ProfilePage from "./components/profilePage/ProfilePage";
import Relate from "./pages/Relation";
import AuthenticityPage from "./pages/AuthenticityPage";
import AddToCart from "./components/ProductList/AddToCart";
import MaintennacePage from "./pages/MaintennacePage";
import ContactUs from "./pages/ContactUs";
import WishList from './components/profilePage/Arpana/Wishlist'
import ShippingDelivery from "./pages/ShippingDelivery";
import Transaction from "./pages/Transaction";
import Discount from "./pages/discountPage";
import TopCategories from "./pages/TopCategories";
import ReferralPage from "./pages/Referral";
import Network from "./components/Network/Network";
import Afterorder from "./pages/OrderConfirmation";
import CareersPage from "./pages/CareersPage";
function App() {
const { pathname } = useLocation();
useEffect(() => {
window.scrollTo(0, 0);
}, [pathname]);
return (
<>
<Header />
<Routes>
<Route path="/" element={<Home />} /> {/* Landing page */}
<Route path="/products" element={<ProductList />} /> {/* Product list page */}
{/* Profile page */}
<Route path="/profile" element={<ProfilePage />} />
{/* <Route path="/product-description" element={<ProductDetails />} /> */}
<Route path="/product-description/:id" element={<ProductDetails />} />
<Route path="/wishlist" element={<WishList />} />
{/* Other Pages */}
<Route path="/special-offers" element={<SpecialOffer />} />
<Route path="/our-team" element={<TeamSection />} />
{/* <Route path="/CSR" element={<DivueensCSR />} /> */}
<Route path="/coins" element={<DivaCoins />} />
<Route path="/blogs" element={<BlogHome />} />
<Route path="/frequently-asked-questions" element={<FaqsPage />} />
<Route path="/contact-us" element={<ContactUs />} />
<Route path="/help-center" element={<HelpCenter />} />
<Route path="/return-policy" element={<ReturnPolicy />} />
<Route path="/shippingdelivery" element={<ShippingDelivery />} />
<Route path="/sell-on-divueens" element={<Sell />} />
<Route path="/privacy-policy" element={<PrivacyPolicy />} />
<Route path="/blogs" element={<BlogHome />} />
<Route path="/about-us" element={<WhoWeAre />} />
<Route path="/terms-and-conditions" element={<TermsAndConditions />} />
<Route path="/membership" element={<MemberShip />} />
<Route path="/order-now/:id" element={<OrderDetails />} />
<Route path="/investor-relation" element={<Relate />} />
<Route path="/virtual-try-on" element={<VirtualTryOnPage />} />
<Route path="/authenticity" element={<AuthenticityPage />} />
<Route path="/store-locator" element={<StoreLocator />} />
<Route path="/addtocart" element={<AddToCart />} />
<Route path="/maintennace" element={<MaintennacePage />} />
<Route path="/transaction" element={<Transaction />} />
{/* change */}
<Route path="/:category/:subcategory" element={<ProductList />} />
<Route path="/product/:productName" element={<ProductDetails />} />
{/* change */}
<Route path="/discounts" element={<Discount />} />
<Route path="/top-catagories" element={<TopCategories />} />
<Route path="/referral" element={<ReferralPage />} />
<Route path="/divueens-network" element={<Network />} />
<Route path="/confirm-order" element={<Afterorder />} />
<Route path="/careers" element={<CareersPage />} />
</Routes>
<Footer />
</>
);
}
export default App;