File tree Expand file tree Collapse file tree
apps/web/src/app/mentor/_ui/MentorClient Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"use client" ;
22
33import { useRouter } from "next/navigation" ;
4- import { lazy , Suspense , useEffect , useState } from "react" ;
4+ import { useEffect , useState } from "react" ;
55import { postReissueToken } from "@/apis/Auth" ;
66import CloudSpinnerPage from "@/components/ui/CloudSpinnerPage" ;
77import useAuthStore from "@/lib/zustand/useAuthStore" ;
88import { UserRole } from "@/types/mentor" ;
99import { isTokenExpired } from "@/utils/jwtUtils" ;
10-
11- // 레이지 로드 컴포넌트
12- const MenteePage = lazy ( ( ) => import ( "./_ui/MenteePage" ) ) ;
13- const MentorPage = lazy ( ( ) => import ( "./_ui/MentorPage" ) ) ;
10+ import MenteePage from "./_ui/MenteePage" ;
11+ import MentorPage from "./_ui/MentorPage" ;
1412
1513const MentorClient = ( ) => {
1614 const router = useRouter ( ) ;
@@ -63,11 +61,7 @@ const MentorClient = () => {
6361 return < CloudSpinnerPage /> ;
6462 }
6563
66- return (
67- < Suspense fallback = { < CloudSpinnerPage /> } >
68- { clientRole === UserRole . MENTOR ? < MentorPage /> : < MenteePage /> }
69- </ Suspense >
70- ) ;
64+ return clientRole === UserRole . MENTOR ? < MentorPage /> : < MenteePage /> ;
7165} ;
7266
7367export default MentorClient ;
You can’t perform that action at this time.
0 commit comments