|
|
@ -1,5 +1,5 @@ |
|
|
|
import React, { useEffect } from "react"; |
|
|
|
import React, { useEffect } from "react"; |
|
|
|
import { BrowserRouter, Routes, Route } from "react-router-dom"; |
|
|
|
import { BrowserRouter, Routes, Route, useLocation } from "react-router-dom"; |
|
|
|
import { Navigate } from "react-router-dom"; |
|
|
|
import { Navigate } from "react-router-dom"; |
|
|
|
import { connect } from "react-redux"; |
|
|
|
import { connect } from "react-redux"; |
|
|
|
import { |
|
|
|
import { |
|
|
@ -10,11 +10,14 @@ import { |
|
|
|
book, |
|
|
|
book, |
|
|
|
blog, |
|
|
|
blog, |
|
|
|
} from "./redux/actions"; |
|
|
|
} from "./redux/actions"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//components
|
|
|
|
import Navbar from "./components/Navbar"; |
|
|
|
import Navbar from "./components/Navbar"; |
|
|
|
import BG from "./components/BG"; |
|
|
|
import BG from "./components/BG"; |
|
|
|
import BottomNavigation from "./components/BottomNavigation"; |
|
|
|
import BottomNavigation from "./components/BottomNavigation"; |
|
|
|
|
|
|
|
import FooterDesign1 from "./components/Footer"; |
|
|
|
|
|
|
|
|
|
|
|
import _ from "lodash"; |
|
|
|
//pages
|
|
|
|
import Home from "./views/Home"; |
|
|
|
import Home from "./views/Home"; |
|
|
|
import Auth from "./views/Auth"; |
|
|
|
import Auth from "./views/Auth"; |
|
|
|
import Products from "./views/Products"; |
|
|
|
import Products from "./views/Products"; |
|
|
@ -33,7 +36,6 @@ import Activation from "./views/Activation"; |
|
|
|
import Faq from "./views/Faq"; |
|
|
|
import Faq from "./views/Faq"; |
|
|
|
import Contact from "./views/Contact"; |
|
|
|
import Contact from "./views/Contact"; |
|
|
|
import Dashboard from "./views/Dashboard"; |
|
|
|
import Dashboard from "./views/Dashboard"; |
|
|
|
import FooterDesign1 from "./components/Footer"; |
|
|
|
|
|
|
|
import Blogs from "./views/Blogs"; |
|
|
|
import Blogs from "./views/Blogs"; |
|
|
|
import Blog from "./views/Blog"; |
|
|
|
import Blog from "./views/Blog"; |
|
|
|
import About from "./views/About"; |
|
|
|
import About from "./views/About"; |
|
|
@ -110,14 +112,9 @@ function Router({ |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className={`${isDark ? "dark" : ""}`}> |
|
|
|
<div className={`${isDark ? "dark" : ""}`}> |
|
|
|
<div |
|
|
|
<div |
|
|
|
className={_.join( |
|
|
|
className={`min-h-screen min-w-screen rtl overflow-x-hidden lg:py-0 ${ |
|
|
|
[ |
|
|
|
isDark ? "" : "bg-white" |
|
|
|
"min-h-screen min-w-screen rtl overflow-x-hidden lg:py-0", |
|
|
|
} ${headerOptions?.shown ? "pt-16" : "pt-0"}`}
|
|
|
|
isDark ? "" : "bg-white", |
|
|
|
|
|
|
|
headerOptions?.shown ? "pt-16" : "pt-0", |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
" " |
|
|
|
|
|
|
|
)} |
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
{menu && ( |
|
|
|
{menu && ( |
|
|
|
<div |
|
|
|
<div |
|
|
|