Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

라우터 구조 변경 (중첩 라우틱 적용, 레이아웃 믹스인 포함) #273

Merged
merged 8 commits into from
Feb 1, 2025
Prev Previous commit
Next Next commit
♻️ 아울렛을 포함한 레이아웃 컴포넌트를 Layout.tsx 파일에 모음 (#249)
hyerindev committed Feb 1, 2025

Verified

This commit was signed with the committer’s verified signature.
Spasi Ioannis Tsakpinis
commit fe0f3ca4edc9d576ecdf1cf93f36fbc0b2c3c7d2
24 changes: 20 additions & 4 deletions src/router/RootLayout.tsx → src/router/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
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 QueryClientBoundary from '@src/components/queryClient/QueryClientBoundary';
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';
import Bottomsheet from '@src/components/common/Bottomsheet';
import Dialog from '@src/components/common/Dialog';
import CommunitySideBar from '@src/components/communitysidebar/CommunitySideBar';
import {
NoDataTextLayout as NoDataTextLayoutStyle,
BottomButtonLayout as BottomButtonLayoutStyle,
} from '@src/styles/Layout';

export const RootLayout = () => (
<QueryClientBoundary>
@@ -22,3 +26,15 @@ export const RootLayout = () => (
</RootErrorBoundary>
</QueryClientBoundary>
);

export const NoDataTextLayout = () => (
<NoDataTextLayoutStyle>
<Outlet />
</NoDataTextLayoutStyle>
);

export const BottomButtonLayout = () => (
<BottomButtonLayoutStyle>
<Outlet />
</BottomButtonLayoutStyle>
);