-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
58 lines (52 loc) · 2.21 KB
/
App.js
File metadata and controls
58 lines (52 loc) · 2.21 KB
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
import React from "react";
import { BrowserRouter, Routes, Route } from "react-router-dom";
import "./App.css";
import Home from "../src/Pages/Home";
import About from "../src/Pages/About";
import Shop from "../src/Pages/Shop";
import Contact from "../src/Pages/Contact";
import Blog from "../src/Pages/Blog";
import Header from "../src/Components/Header/Navbar";
import Footer from "../src/Components/Footer/Footer";
import ProductDetails from "./Pages/ProductDetails";
import NotFound from "./Pages/NotFound";
import ScrollToTop from "./Components/ScrollButton/ScrollToTop";
import Authentication from "./Pages/Authentication";
import ResetPass from "./Components/Authentication/Reset/ResetPass";
import BlogDetails from "./Components/Blog/BlogDetails/BlogDetails";
import TermsConditions from "./Pages/TermsConditions";
import ShoppingCart from "./Components/ShoppingCart/ShoppingCart";
import Popup from "./Components/PopupBanner/Popup";
import { Toaster } from "react-hot-toast";
import AdminLogin from "../src/Pages/admin/Login";
import AdminDashboard from "./Pages/Dashboard/dashboard";
const App = () => {
return (
<>
<ScrollToTop />
<BrowserRouter>
<Header />
<Routes>
<Route path="/" element={<Home />} />
<Route path="/shop" element={<Shop />} />
<Route path="/contact" element={<Contact />} />
<Route path="/blog" element={<Blog />} />
<Route path="/admin/login" element={<AdminLogin />} />
<Route path="/admin/dashboard" element={<AdminDashboard />} />
<Route path="/dashboard" element={<AdminDashboard />} />
<Route path="/product/:id" element={<ProductDetails />} />
<Route path="/product" element={<ProductDetails />} />
<Route path="/loginSignUp" element={<Authentication />} />
<Route path="/resetPassword" element={<ResetPass />} />
<Route path="/BlogDetails" element={<BlogDetails />} />
<Route path="/terms" element={<TermsConditions />} />
<Route path="/cart" element={<ShoppingCart />} />
<Route path="*" element={<NotFound />} />
</Routes>
<Footer />
<Toaster />
</BrowserRouter>
</>
);
};
export default App;