Skip to content

Commit

Permalink
fix-fe: 지원자 상세 정보 모달에서 미사용 탭 제거 (#388)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Seongjin Hong <[email protected]>
  • Loading branch information
github-actions[bot] and seongjinme committed Aug 23, 2024
1 parent ad25761 commit 45ad220
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 19 deletions.
23 changes: 4 additions & 19 deletions frontend/src/components/appModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { useSpecificApplicantId } from '@contexts/SpecificApplicnatIdContext';
import ApplicantBaseInfo from './ApplicantBaseInfo';

import ModalHeader from '../common/ModalHeader';
import AppDetailHeader from './ApplicantDetailInfo/AppDetailHeader';
import QuestionSection from './ApplicantDetailInfo/QuestionSection';
import S from './style';
import ApplicantEvalInfo from './ApplicantEvalInfo';
Expand All @@ -13,19 +12,6 @@ export default function ApplicantModal() {
const { applicantId } = useSpecificApplicantId();
if (!applicantId) return null;

const headerTabs = [
{
id: 0,
name: '지원서',
onClick: () => console.log('지원서가 클릭되었습니다.'),
},
{
id: 1,
name: '이력서',
onClick: () => console.log('이력서가 클릭되었습니다.'),
},
];

return (
<BaseModal>
<S.Container>
Expand All @@ -38,11 +24,10 @@ export default function ApplicantModal() {
</S.ModalSidebar>

<S.ModalNav>
<AppDetailHeader
headerTabs={headerTabs}
activeTabId={0}
content="지원 시 접수된 지원서 내용입니다."
/>
<S.ModalNavHeaderContainer>
<S.ModalNavHeader>지원서</S.ModalNavHeader>
<S.ModalNavContent>지원 시 접수된 지원서 내용입니다.</S.ModalNavContent>
</S.ModalNavHeaderContainer>
</S.ModalNav>

<S.ModalMain>
Expand Down
26 changes: 26 additions & 0 deletions frontend/src/components/appModal/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,29 @@ const ModalNav = styled.div`
border-bottom: 0.1rem solid ${({ theme }) => theme.baseColors.grayscale[600]};
`;

const ModalNavHeaderContainer = styled.div`
height: 100%;
padding: 1.8rem 1.6rem;
display: flex;
flex-direction: column;
justify-content: center;
`;

const ModalNavHeader = styled.div`
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1rem;
${({ theme }) => theme.typography.heading[600]};
color: ${({ theme }) => theme.colors.text.default};
`;

const ModalNavContent = styled.div`
${({ theme }) => theme.typography.common.paragraph};
`;

const ModalMain = styled.div`
grid-area: main;
border-right: 0.1rem solid ${({ theme }) => theme.baseColors.grayscale[600]};
Expand All @@ -56,6 +79,9 @@ const S = {
ModalHeader,
ModalSidebar,
ModalNav,
ModalNavHeaderContainer,
ModalNavHeader,
ModalNavContent,
ModalMain,
ModalAside,
ModalEvalHeader,
Expand Down

0 comments on commit 45ad220

Please sign in to comment.