From fa646b19b8ef60ca5939e22de576a26c3beaa734 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 20 Sep 2024 05:23:15 +0000 Subject: [PATCH 1/3] Create draft PR for #675 From f5d0cd9bd032b35b7ec198a439ad7f88d4efbbd6 Mon Sep 17 00:00:00 2001 From: Jeongwoo Park <121204715+lurgi@users.noreply.github.com> Date: Fri, 20 Sep 2024 14:25:30 +0900 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20DatePicker=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/_common/atoms/DateInput/index.tsx | 1 + .../dashboard/DashboardCreate/Recruitment/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/_common/atoms/DateInput/index.tsx b/frontend/src/components/_common/atoms/DateInput/index.tsx index 78970ab55..f551dc506 100644 --- a/frontend/src/components/_common/atoms/DateInput/index.tsx +++ b/frontend/src/components/_common/atoms/DateInput/index.tsx @@ -26,6 +26,7 @@ export default function DateInput({ label, innerText, ...props }: DateInputProps ref={inputRef} type="date" {...props} + required /> diff --git a/frontend/src/components/dashboard/DashboardCreate/Recruitment/index.tsx b/frontend/src/components/dashboard/DashboardCreate/Recruitment/index.tsx index 8c46ab0f1..717c3618b 100644 --- a/frontend/src/components/dashboard/DashboardCreate/Recruitment/index.tsx +++ b/frontend/src/components/dashboard/DashboardCreate/Recruitment/index.tsx @@ -48,14 +48,14 @@ export default function Recruitment({ recruitmentInfoState, setRecruitmentInfoSt const handleStartDate = (e: React.ChangeEvent) => { setRecruitmentInfoState((prev) => ({ ...prev, - startDate: new Date(e.target.value).toISOString(), + startDate: e.target.value ? new Date(e.target.value).toISOString() : '', })); }; const handleEndDate = (e: React.ChangeEvent) => { setRecruitmentInfoState((prev) => ({ ...prev, - endDate: new Date(e.target.value).toISOString(), + endDate: e.target.value ? new Date(e.target.value).toISOString() : '', })); }; From 8735f38040ec39efdc4f0995086a614c2f37ea4b Mon Sep 17 00:00:00 2001 From: Jeongwoo Park <121204715+lurgi@users.noreply.github.com> Date: Fri, 20 Sep 2024 14:29:57 +0900 Subject: [PATCH 3/3] =?UTF-8?q?refactor:=20required=20=EC=BD=94=EB=93=9C?= =?UTF-8?q?=20=EC=9C=84=EC=B9=98=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/_common/atoms/DateInput/index.tsx | 1 - .../components/dashboard/DashboardCreate/Recruitment/index.tsx | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/_common/atoms/DateInput/index.tsx b/frontend/src/components/_common/atoms/DateInput/index.tsx index f551dc506..78970ab55 100644 --- a/frontend/src/components/_common/atoms/DateInput/index.tsx +++ b/frontend/src/components/_common/atoms/DateInput/index.tsx @@ -26,7 +26,6 @@ export default function DateInput({ label, innerText, ...props }: DateInputProps ref={inputRef} type="date" {...props} - required /> diff --git a/frontend/src/components/dashboard/DashboardCreate/Recruitment/index.tsx b/frontend/src/components/dashboard/DashboardCreate/Recruitment/index.tsx index 717c3618b..da7defc86 100644 --- a/frontend/src/components/dashboard/DashboardCreate/Recruitment/index.tsx +++ b/frontend/src/components/dashboard/DashboardCreate/Recruitment/index.tsx @@ -88,6 +88,7 @@ export default function Recruitment({ recruitmentInfoState, setRecruitmentInfoSt max={recruitmentInfoState.endDate.split('T')[0]} innerText={startDateText} onChange={handleStartDate} + required /> @@ -98,6 +99,7 @@ export default function Recruitment({ recruitmentInfoState, setRecruitmentInfoSt disabled={!startDateText} innerText={endDateText} onChange={handleEndDate} + required />