From 1efdfeb258a717208f030b442e2c76e7ce32d054 Mon Sep 17 00:00:00 2001 From: Yeonu Kim <88171936+Yeonu-Kim@users.noreply.github.com> Date: Sat, 11 Jan 2025 14:47:35 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=EB=A7=88=EA=B0=90=EC=9D=BC=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95=20(#113)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### πŸ“ μž‘μ—… λ‚΄μš© - isActive λŒ€μ‹  마감일과 ν˜„μž¬ μ‹œκ°μ„ λΉ„κ΅ν•©λ‹ˆλ‹€. (더미 데이터 이슈) --- src/pages/LandingPage/PostCard.tsx | 5 +---- src/pages/LandingPage/PostPage/index.tsx | 6 ++++-- src/shared/api/entities/schemas.ts | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/pages/LandingPage/PostCard.tsx b/src/pages/LandingPage/PostCard.tsx index 8f9f74a..b3348f3 100644 --- a/src/pages/LandingPage/PostCard.tsx +++ b/src/pages/LandingPage/PostCard.tsx @@ -15,12 +15,9 @@ export const PostCard = ({ post, onDetailClick }: PostCardProps) => { roles, imageLink, investAmount, - isActive, employeeEndDate, } = post; - console.log(post); - const validDate = employeeEndDate.slice(0, 23); return ( @@ -144,7 +141,7 @@ export const PostCard = ({ post, onDetailClick }: PostCardProps) => {

new Date() ? 'green' : 'red', marginBottom: '12px', }} > diff --git a/src/pages/LandingPage/PostPage/index.tsx b/src/pages/LandingPage/PostPage/index.tsx index 58177c0..55af93b 100644 --- a/src/pages/LandingPage/PostPage/index.tsx +++ b/src/pages/LandingPage/PostPage/index.tsx @@ -33,12 +33,14 @@ export const PostPage = () => { roles, tags, investAmount, - employmentEndDate, + employeeEndDate, isActive, IRDeckLink, landingPageLink, } = postDetailData.data; + const validDate = employeeEndDate.slice(0, 23); + return (

{

μ±„μš© 마감일:{' '} - {new Date(employmentEndDate).toLocaleDateString()} + {new Date(validDate).toLocaleDateString()}

diff --git a/src/shared/api/entities/schemas.ts b/src/shared/api/entities/schemas.ts index 3efbfe1..116b6c9 100644 --- a/src/shared/api/entities/schemas.ts +++ b/src/shared/api/entities/schemas.ts @@ -40,7 +40,7 @@ type PostDTO = { landingPageLink?: string; externalDescriptionLink?: string[]; isActive: boolean; - employmentEndDate: Date; + employeeEndDate: string; }; export type PostBriefDTO = {