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