-
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): Application 새로운 프로젝트 구조 적용 (#238)
- Loading branch information
Showing
13 changed files
with
126 additions
and
113 deletions.
There are no files selected for viewing
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
2 changes: 2 additions & 0 deletions
2
...er/src/hooks/queries/application/index.ts → .../src/pages/ApplicationPage/hooks/index.ts
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
export * from './useApplicationAllMemberMutation'; | ||
export * from './useApplicationConditions'; | ||
export * from './useApplicationInoModal'; | ||
export * from './useApplicationMemberMutation'; | ||
export * from './useApplicationNonePassMutation'; | ||
export * from './useApplicationPassMutation'; | ||
export * from './useRecruitment'; |
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
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
File renamed without changes.
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,40 @@ | ||
import { Suspense } from 'react'; | ||
|
||
import { QueryErrorResetBoundary } from '@tanstack/react-query'; | ||
|
||
import Content from '@components/common/Content/Content'; | ||
import ErrorSection from '@components/common/ErrorSection/ErrorSection'; | ||
import Header from '@components/common/Header/Header'; | ||
|
||
import { ROLE_LEVEL } from '@constants/state'; | ||
import { useMyProfile } from '@hooks/queries'; | ||
import { ErrorBoundary } from '@suspensive/react'; | ||
|
||
import { ApplicationListSection } from './components/ApplicationListSection'; | ||
|
||
export default function ApplicationPage() { | ||
const { data } = useMyProfile(); | ||
|
||
if (data.roleLevel < ROLE_LEVEL.ADMIN) { | ||
throw new Error('접근 권한이 없습니다.'); | ||
} | ||
|
||
return ( | ||
<QueryErrorResetBoundary> | ||
{({ reset }) => ( | ||
<ErrorBoundary | ||
onReset={reset} | ||
fallback={({ reset }) => <ErrorSection reset={reset} />} | ||
> | ||
<Content> | ||
<Header title="지원" /> | ||
|
||
<Suspense> | ||
<ApplicationListSection /> | ||
</Suspense> | ||
</Content> | ||
</ErrorBoundary> | ||
)} | ||
</QueryErrorResetBoundary> | ||
); | ||
} |
Oops, something went wrong.