add lazy auth routes
This commit is contained in:
@@ -1,18 +1,14 @@
|
|||||||
import React, {lazy, Suspense} from "react";
|
import React, {lazy, Suspense} from "react";
|
||||||
import {BrowserRouter, Link, Route, Routes} from "react-router-dom";
|
import {BrowserRouter, Route, Routes} from "react-router-dom";
|
||||||
import Home from "./Home";
|
|
||||||
// import Login from "./Auth/Login";
|
|
||||||
import Register from "./Auth/Register";
|
|
||||||
import useAuthUser from "../hooks/AuthUser";
|
import useAuthUser from "../hooks/AuthUser";
|
||||||
import Profile from "./Auth/Profile";
|
|
||||||
import Header from "../components/Header";
|
import Header from "../components/Header";
|
||||||
// import Rainfall from "./Rainfall";
|
|
||||||
import Meteo from "./Meteo";
|
import Meteo from "./Meteo";
|
||||||
// import Reset from "./Auth/Reset";
|
|
||||||
// import ForgotPassword from "./Auth/ForgotPassword";
|
|
||||||
|
|
||||||
const ForgotPassword = lazy(() => import('./Auth/ForgotPassword'))
|
const ForgotPassword = lazy(() => import('./Auth/ForgotPassword'))
|
||||||
|
const Home = lazy(() => import('./Home'))
|
||||||
const Login = lazy(() => import('./Auth/Login'))
|
const Login = lazy(() => import('./Auth/Login'))
|
||||||
|
const Profile = lazy(() => import('./Auth/Profile'))
|
||||||
|
const Register = lazy(() => import('./Auth/Register'))
|
||||||
const Reset = lazy(() => import('./Auth/Reset'))
|
const Reset = lazy(() => import('./Auth/Reset'))
|
||||||
const Rainfall = lazy(() => import('./Rainfall'))
|
const Rainfall = lazy(() => import('./Rainfall'))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user