Skip to content

Commit

Permalink
fixed homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
YevheniiLi committed Jul 11, 2023
1 parent 48cb439 commit add8696
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import themeConfigs from "./configs/theme.configs";
import { ToastContainer } from "react-toastify";
import CssBaseline from "@mui/material/CssBaseline";
import { BrowserRouter, Route, Routes } from "react-router-dom";
import MainLayout from "./components/layout/MainLayout";
import routes from "./routes/routes";
import PageWrapper from "./components/common/PageWrapper";

import "react-toastify/dist/ReactToastify.css";
import "swiper/css";
import "swiper/css/navigation";
import "swiper/css/pagination";
import HomePage from "./pages/HomePage";

const App = () => {
const { themeMode } = useSelector((state) => state.themeMode);
Expand All @@ -34,7 +34,7 @@ const App = () => {
{/* app routes */}
<BrowserRouter>
<Routes>
<Route path="/" element={<MainLayout />}>
<Route path="/" element={<HomePage />}>
{routes.map((route, index) => (
route.index ? (
<Route
Expand Down

0 comments on commit add8696

Please sign in to comment.