Skip to content

Commit

Permalink
Merge pull request #152 from KimJi-An/feat/#151
Browse files Browse the repository at this point in the history
Feat/#151 ๊ณ ์šฉ์ฃผ์™€ ๊ทผ๋กœ์ž ๊ฐ„์˜ ๊ณ„์•ฝ ์ƒํƒœ์— ๋”ฐ๋ผ ๊ณ„์•ฝํ•˜๊ธฐ ๋ฒ„ํŠผ ํ™œ์„ฑํ™” ์ œ์–ด
  • Loading branch information
YIMSEBIN authored Nov 14, 2024
2 parents 7d40dc6 + fa7fda9 commit fc9ba3e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/apis/applicants/mocks/applicants.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const applicantList = [
applyId: 1,
applicantNation: '๋ฒ ํŠธ๋‚จ',
koreanLanguageLevel: '์ค‘๊ธ‰',
contractExistence: false,
},
{
userId: 2,
Expand All @@ -28,5 +29,6 @@ export const applicantList = [
applyId: 2,
applicantNation: '๋ฒ ํŠธ๋‚จ',
koreanLanguageLevel: '๊ณ ๊ธ‰',
contractExistence: false,
},
];
6 changes: 4 additions & 2 deletions src/assets/translator/Applicants/applicantsData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const applicantsData = {
buttons: {
view_resume: '์ง€์›์„œ',
create_contract: '๊ณ„์•ฝํ•˜๊ธฐ',
complete_contract: '๊ณ„์•ฝ์™„๋ฃŒ',
},
},
[Languages.VE]: {
Expand All @@ -25,8 +26,9 @@ export const applicantsData = {
korean_language_level: 'Trรฌnh ฤ‘แป™ tiแบฟng Hร n',
},
buttons: {
view_resume: 'Hแป“ sฦก แปฉng tuyแปƒn',
create_contract: 'Kรฝ hแปฃp ฤ‘แป“ng',
view_resume: 'Hแป“ sฦก แปฉng viรชn',
create_contract: 'Tแบกo hแปฃp ฤ‘แป“ng',
complete_contract: 'Hoร n thร nh hแปฃp ฤ‘แป“ng',
},
},
};
11 changes: 9 additions & 2 deletions src/pages/applicantsPage/ApplicantList/ApplicantsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,15 @@ export default function ApplicantsTable({ applicantList }: Props) {
>
{t('applicants.buttons.view_resume')}
</Button>
<Button css={buttonStyle} onClick={() => openModal(applicant.userId, applicant.applyId)}>
{t('applicants.buttons.create_contract')}
<Button
design={applicant.contractExistence ? 'deactivate' : 'default'}
css={buttonStyle}
onClick={() => openModal(applicant.userId, applicant.applyId)}
disabled={applicant.contractExistence}
>
{applicant.contractExistence
? t('applicants.buttons.complete_contract')
: t('applicants.buttons.create_contract')}
</Button>
</Flex>
</Td>
Expand Down
1 change: 1 addition & 0 deletions src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export type ApplicantData = {
applyId: number;
applicantNation: string;
koreanLanguageLevel: string;
contractExistence: boolean;
};

export type ForeignerData = {
Expand Down

0 comments on commit fc9ba3e

Please sign in to comment.