From fe668b58d536ac79f27dc19dcec4d5362c4a6b6a Mon Sep 17 00:00:00 2001 From: hyuna Date: Fri, 8 Nov 2024 13:24:23 +0900 Subject: [PATCH] =?UTF-8?q?chore=20::=20=EB=AA=A8=EC=A7=91=EC=9D=98?= =?UTF-8?q?=EB=A2=B0=EC=84=9C=20=EC=8A=A4=ED=83=80=EC=9D=BC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../recruitments/RecruitmentsCard.tsx | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/components/recruitments/RecruitmentsCard.tsx b/src/components/recruitments/RecruitmentsCard.tsx index 3e5f391..9f7e46f 100644 --- a/src/components/recruitments/RecruitmentsCard.tsx +++ b/src/components/recruitments/RecruitmentsCard.tsx @@ -25,17 +25,19 @@ export default function RecruitmentsCard({ maxLength = 12 }: PropsType) { return (
{isLoading && } - {recruitmentsList?.recruitments.length === 0 ? ( -

⚠ 아직 모집의뢰서가 없습니다.

- ) : - recruitmentsList?.recruitments.filter((_, idx) => idx < maxLength).map((item) => { - return ; - })} + {recruitmentsList?.recruitments.length === 0 ? ( +

⚠ 아직 모집의뢰서가 없습니다.

+ ) : ( + recruitmentsList?.recruitments + .filter((_, idx) => idx < maxLength) + .map((item) => { + return ; + }) + )}
); } - function RecruitmentsItem({ company_profile_url, company_name, @@ -51,7 +53,7 @@ function RecruitmentsItem({ return ( -
+
); -} \ No newline at end of file +}