-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(member): MainPage 새로운 프로젝트 구조 적용 (#238)
- Loading branch information
Showing
13 changed files
with
132 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
apps/member/src/components/common/ErrorSection/ErrorSection.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Button } from '@clab-platforms/design-system'; | ||
import { HighPriorityColor } from '@clab-platforms/icon'; | ||
|
||
interface Props { | ||
reset: () => void; | ||
} | ||
|
||
const ErrorSection = ({ reset }: Props) => { | ||
return ( | ||
<div className="m-auto flex flex-col items-center justify-center gap-4"> | ||
<HighPriorityColor width={64} height={64} /> | ||
<div className="text-clab-main text-center font-semibold"> | ||
<h1 className="text-2xl"> | ||
불편을 드려 죄송합니다. 오류가 발생했어요. 😭 | ||
</h1> | ||
</div> | ||
<div className="break-keep text-center text-gray-500"> | ||
<p>만약 같은 문제가 지속적으로 발생할 경우 문의 해주시기 바랍니다.</p> | ||
<p>감사합니다.</p> | ||
</div> | ||
<Button onClick={reset}>재시도</Button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ErrorSection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import { Suspense } from 'react'; | ||
|
||
import { QueryErrorResetBoundary } from '@tanstack/react-query'; | ||
|
||
import ActivityPhotoBanner from '@components/common/ActivityPhotoBanner/ActivityPhotoBanner'; | ||
import Content from '@components/common/Content/Content'; | ||
import ErrorSection from '@components/common/ErrorSection/ErrorSection'; | ||
import { | ||
HireBoard, | ||
NewsBoard, | ||
NoticeBoard, | ||
QnABoard, | ||
} from '@components/community/Board'; | ||
import { BoardSection } from '@components/community/BoardSection'; | ||
|
||
import { ErrorBoundary } from '@suspensive/react'; | ||
|
||
import { BirthdaySection } from './components/BirthdaySection'; | ||
import { BlogSection } from './components/BlogSection'; | ||
import { NoticeSection } from './components/NoticeSection'; | ||
import { OrganizationNewsSection } from './components/OrganizationNewsSection'; | ||
|
||
export default function MainPage() { | ||
return ( | ||
<QueryErrorResetBoundary> | ||
{({ reset }) => ( | ||
<ErrorBoundary | ||
onReset={reset} | ||
fallback={({ reset }) => <ErrorSection reset={reset} />} | ||
> | ||
<Content> | ||
<Suspense> | ||
<NoticeSection /> | ||
</Suspense> | ||
|
||
<Suspense> | ||
<ActivityPhotoBanner /> | ||
</Suspense> | ||
|
||
<Suspense> | ||
<OrganizationNewsSection /> | ||
</Suspense> | ||
|
||
<Suspense> | ||
<BoardSection> | ||
<NoticeBoard /> | ||
<QnABoard /> | ||
</BoardSection> | ||
</Suspense> | ||
|
||
<Suspense> | ||
<BirthdaySection /> | ||
</Suspense> | ||
|
||
<Suspense> | ||
<BlogSection /> | ||
</Suspense> | ||
|
||
<Suspense> | ||
<BoardSection> | ||
<NewsBoard /> | ||
<HireBoard /> | ||
</BoardSection> | ||
</Suspense> | ||
</Content> | ||
</ErrorBoundary> | ||
)} | ||
</QueryErrorResetBoundary> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters