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

fix-fe: 모달 버그 수정 #587

Merged
merged 2 commits into from
Aug 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 25 additions & 17 deletions frontend/src/pages/Dashboard/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-trailing-spaces */
import { useParams } from 'react-router-dom';

import Tab from '@components/common/Tab';
Expand Down Expand Up @@ -54,24 +55,31 @@ export default function Dashboard() {
))}
</Tab>

<Tab.TabPanel isVisible={currentMenu === '지원자 관리'}>
<SpecificApplicantIdProvider>
<SpecificProcessIdProvider>
<ProcessBoard processes={processes} />
</SpecificProcessIdProvider>
</SpecificApplicantIdProvider>
</Tab.TabPanel>
{/* TODO: [08.21-lurgi] 현재 모달이 여러개를 컨트롤 할 수 없는 관계로 새로 렌더링 합니다.
추후에 Modal에 id값을 부여하여 여러개의 모달을 컨트롤 할 수 있게 변경해야합니다.
파일 맨 첫줄 주석도 삭제해야합니다. */}
{currentMenu === '지원자 관리' && (
<Tab.TabPanel isVisible={currentMenu === '지원자 관리'}>
<SpecificApplicantIdProvider>
<SpecificProcessIdProvider>
<ProcessBoard processes={processes} />
</SpecificProcessIdProvider>
</SpecificApplicantIdProvider>
</Tab.TabPanel>
)}

<Tab.TabPanel isVisible={currentMenu === '불합격자 관리'}>
<SpecificApplicantIdProvider>
<SpecificProcessIdProvider>
<ProcessBoard
processes={processes}
showRejectedApplicant
/>
</SpecificProcessIdProvider>
</SpecificApplicantIdProvider>
</Tab.TabPanel>
{currentMenu === '불합격자 관리' && (
<Tab.TabPanel isVisible={currentMenu === '불합격자 관리'}>
<SpecificApplicantIdProvider>
<SpecificProcessIdProvider>
<ProcessBoard
processes={processes}
showRejectedApplicant
/>
</SpecificProcessIdProvider>
</SpecificApplicantIdProvider>
</Tab.TabPanel>
)}

<Tab.TabPanel isVisible={currentMenu === '모집 과정 관리'}>
<ProcessManageBoard
Expand Down
Loading