Skip to content

Commit

Permalink
refactor: React.FC 제거 및 ComponentType 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoonkyoungme committed Sep 26, 2024
1 parent dd98631 commit 501c427
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/router.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { ComponentType } from 'react';
import { Suspense, lazy } from 'react';
import type { RouteObject } from 'react-router-dom';
import { createBrowserRouter } from 'react-router-dom';
Expand All @@ -18,12 +19,11 @@ const MeetingRecommendPage = lazy(() => import('@pages/MeetingRecommendPage'));
const MeetingTimePickPage = lazy(() => import('@pages/MeetingTimePickPage'));
const NotFoundPage = lazy(() => import('@pages/NotFoundPage'));

const SuspenseWrapper = (Component: React.FC) => (
const SuspenseWrapper = (Component: ComponentType) => (
<Suspense fallback={<PageMoveLoading />}>
<Component />
</Suspense>
);

const meetingRoutes: RouteObject[] = [
{
index: true,
Expand Down

0 comments on commit 501c427

Please sign in to comment.