@@ -16,7 +19,7 @@ export default function RegisterVisa() {
css={{ height: '100%' }}
>
- ์ธ๊ตญ์ธ ๋ฒํธ ๋ฐ ๋น์ ๋ฐ๊ธ ์ผ์ ๋ฑ๋ก
+ {t('registerVisa.title')}
diff --git a/src/pages/resume/Resume.tsx b/src/pages/resume/Resume.tsx
index 5d165f9..4d271ea 100644
--- a/src/pages/resume/Resume.tsx
+++ b/src/pages/resume/Resume.tsx
@@ -6,8 +6,12 @@ import { useForm, SubmitHandler } from 'react-hook-form';
import { type ResumeInfo } from './ResumeType';
import useToggle from '@/hooks/useToggle';
import { useState } from 'react';
+import { FetchResume } from '@/apis/resume/useResumeHook';
+import { useTranslation } from 'react-i18next';
export default function Resume() {
+ const { t } = useTranslation();
+
const {
register,
handleSubmit,
@@ -15,7 +19,7 @@ export default function Resume() {
} = useForm
();
const [isToggle, toggle] = useToggle();
const [formData, setFormData] = useState(null);
-
+ const mutation = FetchResume();
const onSubmit: SubmitHandler = (data) => {
setFormData(data);
toggle();
@@ -23,17 +27,19 @@ export default function Resume() {
const handleResumeSubmit = () => {
if (formData) {
- console.log(formData);
- alert('์ ์ถ ์๋ฃ!');
+ const data = JSON.stringify(formData);
+ mutation.mutate({ data });
+
toggle();
}
};
+
return (
- ์ด๋ ฅ์ ์์ฑ
+ {t('resume.title')}
{/* ๋ผ๋์ค */}
@@ -100,24 +106,24 @@ export default function Resume() {
gap={{ y: '10px' }}
>
- ํ๊ตญ์ด ์ค๋ ฅ
+ {t('resume.koreanLevel')}
-
-
-
+
+
+
{errors.koreanLanguageLevel && (
- ํ๊ตญ์ด ์ค๋ ฅ์ ์ ํํด์ฃผ์ธ์!
+ {t('resume.ResumeDescription.koreanLevel')}
)}
-