Skip to content

Commit

Permalink
remove lazy pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Impeqq committed Nov 12, 2021
1 parent 979f500 commit 0e78076
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions frontend/src/pages/routes/routes-config.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { lazy } from "react";
import Auth from "@pages/Auth";
import Chat from "@pages/Chat";
import Error404 from "@pages/Error404";
import Home from "@pages/Home";
import Profile from "@pages/Profile";
import { RouteProps } from "react-router-dom";
import { routePath } from "./route-path";

const Error404 = lazy(() => import("@pages/Error404"));
const Home = lazy(() => import("@pages/Home"));
const Chat = lazy(() => import("@pages/Chat"));
const Auth = lazy(() => import("@pages/Auth"));
const Profile = lazy(() => import("@pages/Profile"));

export type TRoutesConfiguration = RouteProps & {
routes?: RouteProps[];
};
Expand Down

0 comments on commit 0e78076

Please sign in to comment.