diff --git a/src/components/Common/Header/TextFieldHeader.tsx b/src/components/Common/Header/TextFieldHeader.tsx index 5b2fad35..8ed9971a 100644 --- a/src/components/Common/Header/TextFieldHeader.tsx +++ b/src/components/Common/Header/TextFieldHeader.tsx @@ -38,7 +38,7 @@ const TextFieldHeader = ({ placeholder={placeholder} /> {value && ( - )} diff --git a/src/components/Employer/ApplicantList/EmployerApplicantList.tsx b/src/components/Employer/ApplicantList/EmployerApplicantList.tsx index 70befcc4..1be92100 100644 --- a/src/components/Employer/ApplicantList/EmployerApplicantList.tsx +++ b/src/components/Employer/ApplicantList/EmployerApplicantList.tsx @@ -33,7 +33,6 @@ const EmployerApplicationList = ({ ); const [applicantData, setApplicantData] = useState([]); - const [isLoading, setIsLoading] = useState(false); const { data, fetchNextPage, hasNextPage, isFetchingNextPage } = useGetApplicantList( @@ -55,8 +54,7 @@ const EmployerApplicationList = ({ const targetRef = useInfiniteScroll(() => { if (hasNextPage && !isFetchingNextPage) { - setIsLoading(true); - fetchNextPage().finally(() => setIsLoading(false)); + fetchNextPage(); } }, !!hasNextPage); @@ -81,10 +79,14 @@ const EmployerApplicationList = ({ /> - {applicantData?.map((data: ApplicantItemType) => ( - - ))} - {isLoading && } + {applicantData?.length > 0 ? ( + applicantData.map((data: ApplicantItemType) => ( + + )) + ) : ( +
지원자가 없습니다.
+ )} + {isFetchingNextPage && }
); diff --git a/src/components/Home/HomeApplicationCard.tsx b/src/components/Home/HomeApplicationCard.tsx index 64744f88..ed2bd9e7 100644 --- a/src/components/Home/HomeApplicationCard.tsx +++ b/src/components/Home/HomeApplicationCard.tsx @@ -17,12 +17,21 @@ const HomeApplicationCard = ({ applicationData }: HomeApplicationCardProps) => { }; return ( -
-
+
+
Under the Review
-
-
+
+ {applicationData?.icon_img_url ? ( +
+ ) : ( +
+ )}
{applicationData.title} diff --git a/src/components/Home/HomeJobPostingList.tsx b/src/components/Home/HomeJobPostingList.tsx index 8f6c3615..ed499b94 100644 --- a/src/components/Home/HomeJobPostingList.tsx +++ b/src/components/Home/HomeJobPostingList.tsx @@ -84,7 +84,7 @@ const HomeJobPostingList = () => { return (
-
- Level {data?.data?.languages.social_integration} + LEVEL {data?.data?.languages.social_integration}
@@ -159,7 +161,7 @@ const PostApplyResume = () => { Sejong Institute
- Level {data?.data?.languages.sejong_institute} + LEVEL {data?.data?.languages.sejong_institute}
{data?.data?.languages.etc?.map((data: LanguageType) => ( diff --git a/src/components/PostDetail/PostDetailContent.tsx b/src/components/PostDetail/PostDetailContent.tsx index 7dd3a18f..cca1ceaf 100644 --- a/src/components/PostDetail/PostDetailContent.tsx +++ b/src/components/PostDetail/PostDetailContent.tsx @@ -125,8 +125,6 @@ const PostDetailContent = ({ postDetailData }: PostDetailContentProps) => {
(scrollRef.current[1] = e)}>

Workplace Information

-

Recruitment Period

-

Open recruitment

{ {postDetailData.working_conditions.work_day_times .filter( (value) => - !(value.work_start_time === "시간" && value.work_end_time === "무관") + !( + value.work_start_time === '시간' && + value.work_end_time === '무관' + ), ) .map( (value) => diff --git a/src/components/PostSearch/PostSearchFilterList.tsx b/src/components/PostSearch/PostSearchFilterList.tsx index 03ca53b3..4c6ea64a 100644 --- a/src/components/PostSearch/PostSearchFilterList.tsx +++ b/src/components/PostSearch/PostSearchFilterList.tsx @@ -83,7 +83,7 @@ const PostSearchFilterList = () => { const regionIndex = findFilterIndex(region1, region2, region3); - if (regionIndex !== -1) return; + if (regionIndex === -1) return; const newFilterList = { ...filterList, @@ -101,20 +101,20 @@ const PostSearchFilterList = () => { ), }; updateFilterList(newFilterList); + } else { + const newFilterList = { + ...filterList, + [tag.category]: filterList[tag.category as FILTER_CATEGORY].filter( + (value) => value !== tag.value, + ), + }; + updateFilterList(newFilterList); } - - const newFilterList = { - ...filterList, - [tag.category]: filterList[tag.category as FILTER_CATEGORY].filter( - (value) => value !== tag.value, - ), - }; - updateFilterList(newFilterList); }; return ( -
-
+
+
{formatFilterListToTag().map((value, index) => ( { ))}