|
|
@ -1,12 +1,10 @@
|
|
|
|
import { createBrowserRouter, redirect } from "react-router-dom";
|
|
|
|
import { createBrowserRouter, redirect } from "react-router-dom";
|
|
|
|
import { lazy } from "react";
|
|
|
|
|
|
|
|
import { isNullorUndefined } from "../helpers/utils";
|
|
|
|
import { isNullorUndefined } from "../helpers/utils";
|
|
|
|
import { globalService, userService } from "../services";
|
|
|
|
import { globalService, userService } from "../services";
|
|
|
|
|
|
|
|
import Auth from "../pages/Auth";
|
|
|
|
const Auth = lazy(() => import("../pages/Auth"));
|
|
|
|
import Explore from "../pages/Explore";
|
|
|
|
const Explore = lazy(() => import("../pages/Explore"));
|
|
|
|
import Home from "../pages/Home";
|
|
|
|
const Home = lazy(() => import("../pages/Home"));
|
|
|
|
import MemoDetail from "../pages/MemoDetail";
|
|
|
|
const MemoDetail = lazy(() => import("../pages/MemoDetail"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const router = createBrowserRouter([
|
|
|
|
const router = createBrowserRouter([
|
|
|
|
{
|
|
|
|
{
|
|
|
|