Skip to content

Commit

Permalink
✨ 루트 레이아웃 생성 (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyeonzu authored and hyerindev committed Feb 1, 2025
1 parent ce6fe12 commit 593b160
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/router/RootLayout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react';
import { Outlet } from 'react-router-dom';
import Bottomsheet from '@src/components/common/Bottomsheet';
import Dialog from '@src/components/common/Dialog';
import CommunitySideBar from '@src/components/communitysidebar/CommunitySideBar';
import RootErrorBoundary from '@src/components/errorBoundary/RootErrorBoundary';
import ErrorCatcher from '@src/components/errorBoundary/ErrorCatcher';
import QueryClientBoundary from '@src/components/queryClient/QueryClientBoundary';
import LoadingPage from '@src/pages/fallback/LoadingPage';

export const RootLayout = () => (
<QueryClientBoundary>
<RootErrorBoundary>
<ErrorCatcher>
<React.Suspense fallback={<LoadingPage />}>
<Outlet />
<Bottomsheet />
<Dialog />
<CommunitySideBar />
</React.Suspense>
</ErrorCatcher>
</RootErrorBoundary>
</QueryClientBoundary>
);

0 comments on commit 593b160

Please sign in to comment.