Skip to content

Commit

Permalink
(#0) InputDatePicker dateLabel props 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
cause38 committed Jan 15, 2024
1 parent 85b2d96 commit 48ec4ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const DefaultLayout = () => {
>
<div className = "w-[500px]">
<button type = "button" onClick = {onDatesClick}>전체 날짜 변경</button>
<InputDatePicker overlay = {overlay} useTab getPeriodDates = {getDate} externalDates = {myDates} label = "날짜 선택" initialDate = "2024-02-05" cutoffDate = "2024-02-06" cutoffAfterDate = "2024-02-15" required />
<InputDatePicker overlay = {overlay} useTab getPeriodDates = {getDate} externalDates = {myDates} label = "날짜 선택" initialDate = "2024-02-05" cutoffDate = "2024-02-06" cutoffAfterDate = "2024-02-15" required dateLabel = {["복구일"]}/>
<Button type = "submit" backgroundColor = "primary-03" color = "white" size = "h-48" className = "px-7 mt-4" content = "전송"/>
</div>
</form>
Expand Down
2 changes: 2 additions & 0 deletions src/core/components/Input/InputDatePicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const InputDatePicker = ({
inputClassName,
afterAllDate,
label,
dateLabel,
closeButtonText,
}: InputDatePickerProps & HTMLAttributes<HTMLInputElement>) => {
const id = useId();
Expand All @@ -46,6 +47,7 @@ const InputDatePicker = ({
getPeriodDates(periodDates, isAfterAllDate);
close();
}}
dateLabel = {dateLabel}
initialDate = {initialDate}
cutoffDate = {cutoffDate}
cutoffAfterDate = {cutoffAfterDate}
Expand Down

0 comments on commit 48ec4ad

Please sign in to comment.