diff --git a/src/components/Common/Header/BaseHeader.tsx b/src/components/Common/Header/BaseHeader.tsx index 4cd3e56a..ce7399ab 100644 --- a/src/components/Common/Header/BaseHeader.tsx +++ b/src/components/Common/Header/BaseHeader.tsx @@ -17,7 +17,7 @@ const BaseHeader = ({ title, }: HeaderProps) => { return ( -
+
{hasBackButton ? ( + +
+ ); +}; + +export default EmployerApplicantListTitle; diff --git a/src/pages/Employer/ApplicantList/EmployerApplicantListPage.tsx b/src/pages/Employer/ApplicantList/EmployerApplicantListPage.tsx new file mode 100644 index 00000000..94707518 --- /dev/null +++ b/src/pages/Employer/ApplicantList/EmployerApplicantListPage.tsx @@ -0,0 +1,23 @@ +import BaseHeader from '@/components/Common/Header/BaseHeader'; +import EmployerApplicantListTitle from '@/components/Employer/ApplicantList/EmployerApplicantListTitle'; +import { useNavigate } from 'react-router-dom'; + +const EmployerApplicantListPage = () => { + const navigate = useNavigate(); + + return ( + <> +
+ navigate('/employer/post')} + hasMenuButton={true} + title="지원자 조회" + /> + +
+ + ); +}; + +export default EmployerApplicantListPage; diff --git a/src/router.tsx b/src/router.tsx index d6ee6471..6de0d17e 100644 --- a/src/router.tsx +++ b/src/router.tsx @@ -21,6 +21,7 @@ import ApplicationDetailPage from '@/pages/ApplicationDetail/ApplicationDetailPa import ApplicationResultPage from '@/pages/ApplicationResult/ApplicationResultPage'; import EmployerPostDetailPage from '@/pages/Employer/PostDetail/EmployerPostDetailPage'; import EmployerPostPage from '@/pages/Employer/Post/EmployerPostPage'; +import EmployerApplicantListPage from '@/pages/Employer/ApplicantList/EmployerApplicantListPage'; const Layout = () => { const location = useLocation(); @@ -69,6 +70,10 @@ const Router = () => { path="/employer/post/:id" element={} /> + } + /> } /> } /> diff --git a/src/types/post/postSummaryItem.ts b/src/types/post/postSummaryItem.ts new file mode 100644 index 00000000..51f9064e --- /dev/null +++ b/src/types/post/postSummaryItem.ts @@ -0,0 +1,9 @@ +import { SummariesType, TagType } from '@/types/postDetail/postDetailItem'; + +export type PostSummaryItemType = { + icon_img_url: string; + company_name: string; + title: string; + tags: TagType; + summaries: SummariesType; +}; diff --git a/src/types/postDetail/postDetailItem.ts b/src/types/postDetail/postDetailItem.ts index 26215604..125cc7b8 100644 --- a/src/types/postDetail/postDetailItem.ts +++ b/src/types/postDetail/postDetailItem.ts @@ -1,4 +1,4 @@ -type VisaType = +export type VisaType = | 'D_2_1' | 'D_2_2' | 'D_2_3' @@ -10,7 +10,7 @@ type VisaType = | 'D_4_7' | 'F_2'; -type JobCategoryType = +export type JobCategoryType = | 'GENERAL_INTERPRETATION_TRANSLATION' | 'FOOD_SERVICE_ASSISTANT' | 'GENERAL_ADMINISTRATIVE_SUPPORT' @@ -52,13 +52,13 @@ export type CompanyImageUrlType = { img_url: string; }; -type TagType = { +export type TagType = { is_recruiting: boolean; visa: VisaType; job_category: JobCategoryType; }; -type SummariesType = { +export type SummariesType = { address: string; houlry_rate: number; work_period: WorkPeriodType;