Skip to content

Commit

Permalink
Merge pull request #107 from tteokbokki-master/feat/#104
Browse files Browse the repository at this point in the history
Feat/#104 i18n ๋ฒˆ์—ญ ๋ฐ์ดํ„ฐ ์ƒ์„ฑ ๋ฐ ์ ์šฉ
  • Loading branch information
YIMSEBIN authored Nov 7, 2024
2 parents ccf02fd + 2a70d2e commit c561572
Show file tree
Hide file tree
Showing 14 changed files with 240 additions and 76 deletions.
38 changes: 38 additions & 0 deletions src/assets/translator/Apply/applyData.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { Languages } from '../Languages';

export const applyData = {
[Languages.KO]: {
title: '์ง€์›์„œ ์ž‘์„ฑ',
name: '์ด๋ฆ„',
address: '์ฃผ์†Œ',
phoneNumber: '๋ฒˆํ˜ธ',
applyMotivation: '์ง€์›๋™๊ธฐ',
description: {
name: '์ด๋ฆ„์„ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”.',
address: '์ฃผ์†Œ๋ฅผ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š” (์˜ˆ: ๋Œ€์ „๊ด‘์—ญ์‹œ ์œ ์„ฑ๊ตฌ ๊ถ๋™)',
phoneNumber: '๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š” (์˜ˆ: 010-0000-0000)',
applyMotivation: '์ง€์›๋™๊ธฐ๋ฅผ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”',
},
errors: '์„(๋ฅผ) ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”!',
numberError: '์˜ฌ๋ฐ”๋ฅธ ์ „ํ™”๋ฒˆํ˜ธ ํ˜•์‹์ด ์•„๋‹™๋‹ˆ๋‹ค. (์˜ˆ: 010-0000-0000)',
submit: '์ง€์›ํ•˜๊ธฐ',
submitMent: '์ •๋ง ์ง€์›ํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?',
},
[Languages.VE]: {
title: 'ฤฦกn แปฉng tuyแปƒn',
name: 'Hแป vร  tรชn',
address: 'ฤแป‹a chแป‰',
phoneNumber: 'Sแป‘ ฤ‘iแป‡n thoแบกi',
applyMotivation: 'ฤแป™ng lแปฑc แปฉng tuyแปƒn',
description: {
name: 'Vui lรฒng nhแบญp hแป vร  tรชn.',
address: 'Vui lรฒng nhแบญp ฤ‘แป‹a chแป‰ (vรญ dแปฅ: Quแบญn Cแบฉm Lแป‡, Thร nh phแป‘ ฤร  Nแบตng)',
phoneNumber: 'Vui lรฒng nhแบญp sแป‘ ฤ‘iแป‡n thoแบกi (vรญ dแปฅ: 010-0000-0000)',
applyMotivation: 'Vui lรฒng nhแบญp ฤ‘แป™ng lแปฑc แปฉng tuyแปƒn',
},
errors: 'Vui lรฒng nhแบญp!',
numberError: 'Sแป‘ ฤ‘iแป‡n thoแบกi khรดng ฤ‘รบng ฤ‘แป‹nh dแบกng. (vรญ dแปฅ: 010-0000-0000)',
submit: 'Nแป™p ฤ‘ฦกn',
submitMent: 'Bแบกn cรณ chแบฏc chแบฏn muแป‘n แปฉng tuyแปƒn khรดng?',
},
};
64 changes: 64 additions & 0 deletions src/assets/translator/Apply/applyGuideData.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import { Languages } from '../Languages';

export const applyGuideData = {
[Languages.KO]: {
section1: {
title: '๐Ÿ™Œ ์ฑ„์šฉ ์ ˆ์ฐจ ์•ˆ๋‚ด',
description: '์—ฌ๋Ÿฌ๋ถ„์˜ ์ฑ„์šฉ ์ ˆ์ฐจ๋ฅผ ๋”์šฑ ์›ํ™œํ•˜๊ฒŒ ์ง„ํ–‰ํ•  ์ˆ˜ ์žˆ๋„๋ก, ์•„๋ž˜์˜ ๋‚ด์šฉ์„ ๊ผญ ํ™•์ธํ•ด์ฃผ์„ธ์š”.',
},
section2: {
title: '1. ์ฑ„์šฉ ์ ˆ์ฐจ ์„ค๋ช…',
description:
'- ์ฑ„์šฉ ๊ณผ์ • ์ „๋ฐ˜์— ๋Œ€ํ•œ ์•ˆ๋‚ด๋ฅผ ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ์ฑ„์šฉ์˜ ๋ชจ๋“  ๋‹จ๊ณ„์—์„œ ์–ด๋–ค ์ผ๋“ค์ด ์ผ์–ด๋‚ ์ง€์— ๋Œ€ํ•ด ๋ช…ํ™•ํžˆ ์ดํ•ดํ•˜๊ณ  ์ค€๋น„ํ•  ์ˆ˜ ์žˆ๋„๋ก ๋„์™€๋“œ๋ฆฝ๋‹ˆ๋‹ค.',
},
section3: {
title: '2. ์ฃผ์˜ ์‚ฌํ•ญ ๋ฐ ํ‘œ์ค€ ๊ทผ๋กœ๊ณ„์•ฝ์„œ ์•ˆ๋‚ด',
description: {
description1:
'- ๊ณ ์šฉ์ฃผ๊ฐ€ ์ฑ„์šฉ์„ ํฌ๋งํ•˜๋Š” ๊ฒฝ์šฐ, ์ฑ„์šฉ ๊ณผ์ •๊ณผ ๋ณ„๋„๋กœ ๋“ฑ๋กํ•˜์‹  ์ด๋ฉ”์ผ๋กœ ํ‘œ์ค€ ๊ทผ๋กœ๊ณ„์•ฝ์„œ์™€ ์ฃผ์˜์‚ฌํ•ญ์ด ์•ˆ๋‚ด๋ฉ๋‹ˆ๋‹ค.',
description2:
' - ์ฑ„์šฉ ์ ˆ์ฐจ๊ฐ€ ์ง„ํ–‰๋˜๋Š” ๋™์•ˆ, ๊ทผ๋กœ๊ณ„์•ฝ์„œ ์ž‘์„ฑ ์‹œ ์œ ์˜ํ•  ์ ์„ ๋ฐ˜๋“œ์‹œ ํ™•์ธํ•˜์‹œ๊ณ  ํ•„์š”ํ•œ ๊ฒฝ์šฐ ์ฐธ๊ณ ํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.',
description3:
' - ํ•ด๋‹น ๊ณผ์ •์€ ์—ฌ๋Ÿฌ๋ถ„๊ณผ ๊ณ ์šฉ์ฃผ ๋ชจ๋‘๊ฐ€ ์ดํ•ดํ•˜๊ณ  ๋™์˜ํ•˜๋Š” ํˆฌ๋ช…ํ•˜๊ณ  ์‹ ๋ขฐํ•  ์ˆ˜ ์žˆ๋Š” ๊ณ„์•ฝ์„œ๋ฅผ ์ž‘์„ฑํ•˜๋Š” ๋ฐ ๋„์›€์„ ๋“œ๋ฆฌ๊ธฐ ์œ„ํ•œ ๊ฒƒ์ž…๋‹ˆ๋‹ค.',
},
},
section4: {
description:
'์ด ์•ˆ๋‚ด์‚ฌํ•ญ๋“ค์€ ์—ฌ๋Ÿฌ๋ถ„์ด ์ฑ„์šฉ ์ ˆ์ฐจ๋ฅผ ์„ฑ๊ณต์ ์œผ๋กœ ๋งˆ๋ฌด๋ฆฌํ•˜๊ณ , ๊ทผ๋กœ ๊ณ„์•ฝ์ด ์›ํ™œํ•˜๊ฒŒ ์ฒด๊ฒฐ๋  ์ˆ˜ ์žˆ๋„๋ก ์ง€์›ํ•˜๊ธฐ ์œ„ํ•œ ๊ฒƒ์ž…๋‹ˆ๋‹ค.',
},
section5: { description: 'ํ•„์š”ํ•œ ์ •๋ณด๊ฐ€ ์ •ํ™•ํžˆ ์ „๋‹ฌ๋  ์ˆ˜ ์žˆ๋„๋ก ํ•ญ์ƒ ์ฃผ์˜ํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.' },
section6: { description: '์ง€์›์„œ ์ž‘์„ฑํ•˜๋Ÿฌ ๊ฐ€๊ธฐ' },
},
[Languages.VE]: {
section1: {
title: '๐Ÿ™Œ Quy trรฌnh tuyแปƒn dแปฅng',
description: 'ฤแปƒ quรก trรฌnh tuyแปƒn dแปฅng cแปงa bแบกn diแป…n ra thuแบญn lแปฃi hฦกn, vui lรฒng kiแปƒm tra nแป™i dung dฦฐแป›i ฤ‘รขy.',
},
section2: {
title: '1. Giแบฃi thรญch quy trรฌnh tuyแปƒn dแปฅng',
description:
'- Chรบng tรดi cung cแบฅp thรดng tin vแป toร n bแป™ quy trรฌnh tuyแปƒn dแปฅng. ฤiแปu nร y giรบp bแบกn hiแปƒu rรต vร  chuแบฉn bแป‹ sแบตn sร ng cho tแปซng bฦฐแป›c cแปงa quy trรฌnh.',
},
section3: {
title: '2. Lฦฐu รฝ vร  hฦฐแป›ng dแบซn vแป hแปฃp ฤ‘แป“ng lao ฤ‘แป™ng tiรชu chuแบฉn',
description: {
description1:
'- Khi nhร  tuyแปƒn dแปฅng mong muแป‘n tuyแปƒn dแปฅng, thรดng tin vแป hแปฃp ฤ‘แป“ng lao ฤ‘แป™ng tiรชu chuแบฉn vร  cรกc lฦฐu รฝ sแบฝ ฤ‘ฦฐแปฃc gแปญi ฤ‘แบฟn email ฤ‘รฃ ฤ‘ฤƒng kรฝ cแปงa bแบกn.',
description2:
'- Trong suแป‘t quรก trรฌnh tuyแปƒn dแปฅng, hรฃy kiแปƒm tra kแปน cรกc ฤ‘iแปu cแบงn lฦฐu รฝ khi kรฝ kแบฟt hแปฃp ฤ‘แป“ng lao ฤ‘แป™ng vร  tham khแบฃo nแบฟu cแบงn thiแบฟt.',
description3:
'- Quรก trรฌnh nร y nhแบฑm giรบp cแบฃ bแบกn vร  nhร  tuyแปƒn dแปฅng hiแปƒu vร  ฤ‘แป“ng thuแบญn trong viแป‡c tแบกo ra mแป™t hแปฃp ฤ‘แป“ng minh bแบกch vร  ฤ‘รกng tin cแบญy.',
},
},
section4: {
description:
'Nhแปฏng hฦฐแป›ng dแบซn nร y giรบp bแบกn hoร n thร nh quy trรฌnh tuyแปƒn dแปฅng thร nh cรดng vร  kรฝ kแบฟt hแปฃp ฤ‘แป“ng lao ฤ‘แป™ng mแป™t cรกch suรดn sแบป.',
},
section5: {
description: 'Hรฃy luรดn cแบฉn thแบญn ฤ‘แปƒ ฤ‘แบฃm bแบฃo thรดng tin cแบงn thiแบฟt ฤ‘ฦฐแปฃc truyแปn tแบฃi chรญnh xรกc.',
},
section6: {
description: 'ฤiแปn ฤ‘ฦกn แปฉng tuyแปƒn',
},
},
};
20 changes: 20 additions & 0 deletions src/assets/translator/Footer/footerData.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Languages } from '../Languages';

export const footerData = {
[Languages.KO]: {
info_1: '(์ฃผ)Hire Higher ์ž„์„ธ๋นˆ',
info_2: '๋Œ€์ „๊ด‘์—ญ์‹œ ์œ ์„ฑ๊ตฌ ๊ถ๋™',
info_3: '์ „ํ™”๋ฒˆํ˜ธ: 042-821-5114',
info_4: '์‚ฌ์—…์ž๋“ฑ๋ก๋ฒˆํ˜ธ: 111-11-00000',
info_5: 'ํ†ต์‹ ํŒ๋งค๋ฒˆํ˜ธ: 2024-๋Œ€์ „์œ ์„ฑ-0000',
info_6: '์œ ๋ฃŒ์ง์—…์†Œ๊ฐœ์‚ฌ์—…๋“ฑ๋ก๋ฒˆํ˜ธ: (๊ตญ๋‚ด) ์ œ2024-1111111-11-1-00011ํ˜ธ',
},
[Languages.VE]: {
info_1: 'Cรดng ty TNHH Hire Higher ์ž„์„ธ๋นˆ',
info_2: 'Quแบญn Yuseong, Daejeon, Gungdong',
info_3: 'Sแป‘ ฤ‘iแป‡n thoแบกi: 042-821-5114',
info_4: 'Mรฃ sแป‘ doanh nghiแป‡p: 111-11-00000',
info_5: 'Sแป‘ ฤ‘ฤƒng kรฝ kinh doanh thฦฐฦกng mแบกi ฤ‘iแป‡n tแปญ: 2024-Daejeon Yuseong-0000',
info_6: 'Sแป‘ ฤ‘ฤƒng kรฝ dแป‹ch vแปฅ giแป›i thiแป‡u viแป‡c lร m cรณ phรญ (trong nฦฐแป›c): Sแป‘ 2024-1111111-11-1-00011',
},
};
38 changes: 38 additions & 0 deletions src/assets/translator/Recruit/recruitData.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { Languages } from '../Languages';

export const recruitData = {
[Languages.KO]: {
recruit: '์ง€์›ํ•˜๊ธฐ',
conditions: '๊ทผ๋ฌด์กฐ๊ฑด',
conditions_detail: {
salary: '๊ธ‰์—ฌ',
workDuration: '๊ทผ๋ฌด๊ธฐ๊ฐ„',
workDays: '๊ทผ๋ฌด์š”์ผ',
workHours: '๊ทผ๋ฌด์‹œ๊ฐ„',
employerName: '๋Œ€ํ‘œ',
companyName: 'ํšŒ์‚ฌ๋ช…',
workType: '๊ณ ์šฉํ˜•ํƒœ',
},
eligibilityRequirements: '์ง€์›์ž๊ฒฉ',
detailedDescription: '์ƒ์„ธ์„ค๋ช…',
mainResponsibilities: '์ฃผ์š”์—…๋ฌด',
PreferredRequirements: '์šฐ๋Œ€์‚ฌํ•ญ',
},
[Languages.VE]: {
recruit: 'แปจng tuyแปƒn',
conditions: 'ฤiแปu kiแป‡n lร m viแป‡c',
conditions_detail: {
salary: 'Lฦฐฦกng',
workDuration: 'Thแปi gian lร m viแป‡c',
workDays: 'Ngร y lร m viแป‡c',
workHours: 'Giแป lร m viแป‡c',
employerName: 'Ngฦฐแปi ฤ‘แบกi diแป‡n',
companyName: 'Tรชn cรดng ty',
workType: 'Loแบกi hรฌnh cรดng viแป‡c',
},
eligibilityRequirements: 'Yรชu cแบงu แปฉng tuyแปƒn',
detailedDescription: 'Mรด tแบฃ chi tiแบฟt',
mainResponsibilities: 'Nhiแป‡m vแปฅ chรญnh',
PreferredRequirements: 'Yรชu cแบงu ฦฐu tiรชn',
},
};
15 changes: 15 additions & 0 deletions src/assets/translator/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import { applicantsData } from './Applicants/applicantsData';
import { contractModalData } from './Applicants/ContractModal/contractModalData';
import { applyGuideData } from './Apply/applyGuideData';
import { applyData } from './Apply/applyData';
import { employerMyPageData } from './EmployerMyPage/employerMyPageData';
import { footerData } from './Footer/footerData';
import { headerData } from './Header/headerData';
import { Languages } from './Languages';
import { myCompanyData } from './MyCompany/myCompanyData';
import { recruitData } from './Recruit/recruitData';
import { registerVisaData } from './RegisterVisa/registerVisaData';
import { resumeData } from './Resume/resumeData';
import { registerSignData } from './registerSign/registerSignData';

export const KO = {
resume: { ...resumeData[Languages.KO] },
Expand All @@ -15,6 +20,11 @@ export const KO = {
registerVisa: { ...registerVisaData[Languages.KO] },
contractModal: { ...contractModalData[Languages.KO] },
header: { ...headerData[Languages.KO] },
footer: { ...footerData[Languages.KO] },
recruit: { ...recruitData[Languages.KO] },
applyGuide: { ...applyGuideData[Languages.KO] },
apply: { ...applyData[Languages.KO] },
registerSign: { ...registerSignData[Languages.KO] },
};

export const VE = {
Expand All @@ -25,4 +35,9 @@ export const VE = {
registerVisa: { ...registerVisaData[Languages.VE] },
contractModal: { ...contractModalData[Languages.VE] },
header: { ...headerData[Languages.VE] },
footer: { ...footerData[Languages.VE] },
recruit: { ...recruitData[Languages.VE] },
applyGuide: { ...applyGuideData[Languages.VE] },
apply: { ...applyData[Languages.VE] },
registerSign: { ...registerSignData[Languages.VE] },
};
6 changes: 6 additions & 0 deletions src/assets/translator/registerSign/registerSignData.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Languages } from '../Languages';

export const registerSignData = {
[Languages.KO]: { registerSign: '์‚ฌ์ธ ๋“ฑ๋กํ•˜๊ธฐ', reset: '์ดˆ๊ธฐํ™”' },
[Languages.VE]: { registerSign: 'ฤฤƒng kรฝ chแปฏ kรฝ', reset: 'ฤแบทt lแบกi' },
};
14 changes: 8 additions & 6 deletions src/features/layout/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
import { Icon } from '@components/common';
import styled from '@emotion/styled';
import Logo from '@assets/images/hirehigher-logo.svg?react';
import { useTranslation } from 'react-i18next';

const Footer = () => {
const { t } = useTranslation();
return (
<Container>
<Wrapper>
<Content>
<Logo />
<Gap height="24px" />
<p>(์ฃผ)Hire Higher ์ž„OO</p>
<p>๋Œ€์ „๊ด‘์—ญ์‹œ ์œ ์„ฑ๊ตฌ ๊ถ๋™</p>
<p>์ „ํ™”๋ฒˆํ˜ธ: 042-821-5114</p>
<p>{t('footer.info_1')}</p>
<p>{t('footer.info_2')}</p>
<p>{t('footer.info_3')}</p>
<Gap height="12px" />
<p>์‚ฌ์—…์ž๋“ฑ๋ก๋ฒˆํ˜ธ: 111-11-00000</p>
<p>ํ†ต์‹ ํŒ๋งค๋ฒˆํ˜ธ: 2024-๋Œ€์ „์œ ์„ฑ-3147</p>
<p>์œ ๋ฃŒ์ง์—…์†Œ๊ฐœ์‚ฌ์—…๋“ฑ๋ก๋ฒˆํ˜ธ: (๊ตญ๋‚ด) ์ œ2024-1111111-11-1-00011ํ˜ธ</p>
<p>{t('footer.info_4')}</p>
<p>{t('footer.info_5')}</p>
<p>{t('footer.info_6')}</p>
</Content>
</Wrapper>
<Gap border="0.1px solid #767f8c;" />
Expand Down
28 changes: 14 additions & 14 deletions src/pages/apply/applyguide/ApplyGuide.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import Layout from '@/features/layout';
import styled from '@emotion/styled';
import { Typo } from '@/components/common';
import { Typo, Button } from '@/components/common';
import { ReactNode } from 'react';
import { guideMent } from './guideMent';
import { useNavigate } from 'react-router-dom';
import { Button } from '@/components/common';
import { useTranslation } from 'react-i18next';

const IndentText = ({ children }: { children: ReactNode }) => <Typo style={{ marginLeft: '20px' }}>{children}</Typo>;

Expand All @@ -20,24 +19,25 @@ export default function ApplyGuide() {
const navigateToApply = () => {
nav('/apply');
};
const { t } = useTranslation();

return (
<Layout>
<ApplyContainer>
<Wrapper>
<TextArea>
<SpacingText bold={true}>{guideMent[0].title}</SpacingText>
<Typo>{guideMent[0].description}</Typo>
<SpacingText bold={true}>{guideMent[1].title}</SpacingText>
<IndentText>{guideMent[1].description}</IndentText>
<SpacingText bold={true}>{guideMent[2].title}</SpacingText>
{(guideMent[2].description as string[]).map((desc: string, index: number) => {
return <IndentText key={index}>{desc}</IndentText>;
})}
<SpacingText>{guideMent[3].description}</SpacingText>
<SpacingText>{guideMent[4].description}</SpacingText>
<SpacingText bold={true}>{t('applyGuide.section1.title')}</SpacingText>
<Typo>{t('applyGuide.section1.description')}</Typo>
<SpacingText bold={true}>{t('applyGuide.section2.title')}</SpacingText>
<IndentText>{t('applyGuide.section2.description')}</IndentText>
<SpacingText bold={true}>{t('applyGuide.section3.title')}</SpacingText>
<IndentText>{t('applyGuide.section3.description.description1')}</IndentText>
<IndentText>{t('applyGuide.section3.description.description2')}</IndentText>
<IndentText>{t('applyGuide.section3.description.description3')}</IndentText>
<SpacingText>{t('applyGuide.section4.description')}</SpacingText>
<SpacingText>{t('applyGuide.section5.description')}</SpacingText>
</TextArea>
<CustomBtn onClick={navigateToApply}>{guideMent[5].description}</CustomBtn>
<CustomBtn onClick={navigateToApply}>{t('applyGuide.section6.description')}</CustomBtn>
</Wrapper>
</ApplyContainer>
</Layout>
Expand Down
25 changes: 0 additions & 25 deletions src/pages/apply/applyguide/guideMent.ts

This file was deleted.

29 changes: 15 additions & 14 deletions src/pages/apply/applypage/ApplyPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,59 +3,60 @@ import styled from '@emotion/styled';
import { Flex, Typo, Button, Modal } from '@/components/common';
import { useApplyHook } from './useApplyHook';
import ApplyInput from './ApplyInput';
import { useTranslation } from 'react-i18next';

export default function ApplyPage() {
const { toggle, isToggle, register, handleSubmit, onSubmit, handleApplySubmit, errors } = useApplyHook();

const { t } = useTranslation();
return (
<Layout>
<Flex justifyContent="center" alignItems="center">
<ApplyCard>
<Typo size="24px" bold={true}>
์ง€์›์„œ ์ž‘์„ฑ
{t('apply.title')}
</Typo>
<StyledForm onSubmit={handleSubmit(onSubmit)}>
<ApplyInput
errors={errors}
title="์ด๋ฆ„"
title={t('apply.name')}
label="name"
register={register}
placeholder="์ด๋ฆ„์„ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”."
placeholder={t('apply.description.name')}
required
/>
<ApplyInput
errors={errors}
title="์ฃผ์†Œ"
title={t('apply.address')}
label="address"
register={register}
placeholder="์ฃผ์†Œ๋ฅผ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”. (์˜ˆ: ๋Œ€์ „๊ด‘์—ญ์‹œ ์œ ์„ฑ๊ตฌ ๊ถ๋™)"
placeholder={t('apply.description.address')}
required
/>
<ApplyInput
errors={errors}
title="๋ฒˆํ˜ธ"
title={t('apply.phoneNumber')}
label="phoneNumber"
register={register}
pattern={/^010-\d{4}-\d{4}$/}
patternMessage="์˜ฌ๋ฐ”๋ฅธ ์ „ํ™”๋ฒˆํ˜ธ ํ˜•์‹์ด ์•„๋‹™๋‹ˆ๋‹ค. (์˜ˆ: 010-0000-0000)"
placeholder="010-0000-0000 ํ˜•์‹์˜ ๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”."
patternMessage={t('apply.numberError')}
placeholder={t('apply.description.phoneNumber')}
required
/>
<ApplyInput
errors={errors}
title="์ง€์›๋™๊ธฐ"
title={t('apply.applyMotivation')}
label="applyMotivation"
register={register}
placeholder="์ง€์› ๋™๊ธฐ๋ฅผ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”."
placeholder={t('apply.description.applyMotivation')}
required
/>
<CustomBtn type="submit">์ง€์›ํ•˜๊ธฐ</CustomBtn>
<CustomBtn type="submit">{t('apply.submit')}</CustomBtn>
</StyledForm>
</ApplyCard>
{isToggle && (
<Modal
textChildren={<ModalContainer>์ •๋ง ์ง€์›ํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?</ModalContainer>}
buttonChildren={<CustomBtn onClick={handleApplySubmit}>์ง€์›ํ•˜๊ธฐ</CustomBtn>}
textChildren={<ModalContainer>{t('apply.submitMent')}</ModalContainer>}
buttonChildren={<CustomBtn onClick={handleApplySubmit}>{t('apply.submit')}</CustomBtn>}
onClose={toggle}
/>
)}
Expand Down
Loading

0 comments on commit c561572

Please sign in to comment.