Skip to content

Commit 2976ded

Browse files
committed
Bulk Edits
1 parent bf40db9 commit 2976ded

File tree

18 files changed

+84
-45
lines changed

18 files changed

+84
-45
lines changed

src/App.jsx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1+
import axios from "axios";
12
import React, { useEffect, useState } from "react";
23
import { createBrowserRouter, RouterProvider } from "react-router-dom";
4+
import { useDispatch } from "react-redux";
5+
import { setReduxUser } from "./redux/slice/user";
36

47
/* Pages Import */
5-
import Home from "./pages/Home";
8+
import Home from "./components/home/Home";
9+
import RootComponent from "./components/Common/RootComponent";
10+
import Slug from "./pages/products/Slug";
611
import Blogs from "./pages/Blogs";
712
import Login from "./pages/Login";
813
import Signup from "./pages/Signup";
914
import Contact from "./pages/Contact";
1015
import Pages from "./pages/Pages";
11-
import Products from "./pages/Products";
12-
import RootComponent from "./components/RootComponent";
13-
import axios from "axios";
14-
import { useDispatch } from "react-redux";
15-
import { setReduxUser } from "./redux/slice/user";
16+
import Product from "./pages/products/Product";
17+
import Products from "./pages/products/Product";
1618

1719
const router = createBrowserRouter([
1820
{
@@ -23,10 +25,13 @@ const router = createBrowserRouter([
2325
path: "",
2426
element: <Home />,
2527
},
26-
2728
{
28-
path: "products",
29-
element: <Products />,
29+
path: "product",
30+
element: <Products/>,
31+
},
32+
{
33+
path: ":slug",
34+
element: <Slug />,
3035
},
3136
{
3237
path: "pages",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { FaAngleDown } from "react-icons/fa";
1212
import { FaCartArrowDown } from "react-icons/fa6";
1313
import { MdOutlinePhoneInTalk } from "react-icons/md";
1414
import { useDispatch, useSelector } from "react-redux";
15-
import { setLogOut } from "../redux/slice/user";
15+
import { setLogOut } from "../../redux/slice/user";
1616

1717
export default function Header() {
1818
const user = useSelector((store) => store.user.value);
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import Banner from "../pages/home/components/Banner";
1+
import Banner from "./Banner";
22
import "slick-carousel/slick/slick.css";
33
import "slick-carousel/slick/slick-theme.css";
44
import Slider from "react-slick";
5-
import Products from "../pages/Products";
5+
import Products from "../../pages/products/Product";
66
import axios from "axios";
77
import React, { useEffect, useState } from "react";
88
import Skeleton from "react-loading-skeleton";

src/pages/Blogs.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import BreadCrumb from "../components/BreadCrumb";
2+
import BreadCrumb from "../components/Common/BreadCrumb";
33

44
export default function Blogs() {
55
return (
@@ -14,5 +14,5 @@ export default function Blogs() {
1414
/>
1515
<div>Blogs</div>
1616
</>
17-
);
17+
);
1818
}

src/pages/Contact.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import BreadCrumb from "../components/BreadCrumb";
2+
import BreadCrumb from "../components/Common/BreadCrumb";
33

44
export default function Contact() {
55
return (

src/pages/Login.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useState } from "react";
22
import { Link, useNavigate } from "react-router-dom";
3-
import BreadCrumb from "../components/BreadCrumb";
3+
import BreadCrumb from "../components/Common/BreadCrumb";
44
import axios from "axios";
55
import { useDispatch } from "react-redux";
66
import { toast } from "react-toastify";

0 commit comments

Comments
 (0)