From e7a46ac3a23a8e716bebf4ad7e2292ce2b6ca92c Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 27 Jul 2025 14:43:42 +0900 Subject: [PATCH 1/6] =?UTF-8?q?=EB=85=84=EC=9B=94=20=EC=BA=98=EB=A6=B0?= =?UTF-8?q?=EB=8D=94=20=EB=85=84=20readonly=20=EC=98=B5=EC=85=98=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20(not=20necessary)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business_components/src/ui/date_month_picker/index.tsx | 3 +++ .../src/ui/date_month_picker/mothPicker.tsx | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/common/business_components/src/ui/date_month_picker/index.tsx b/packages/common/business_components/src/ui/date_month_picker/index.tsx index 1b97d9ce1..a8da0ff0e 100644 --- a/packages/common/business_components/src/ui/date_month_picker/index.tsx +++ b/packages/common/business_components/src/ui/date_month_picker/index.tsx @@ -18,6 +18,7 @@ type MonthPickerProps = { selectClass?: string; readOnly?: boolean; startYear?: number; // 시작 연도 props 추가 + yearReadOnly?: boolean; }; // yyyyMM → Date 객체 @@ -39,6 +40,7 @@ export const DateMonthPicker = ({ selectClass, readOnly = false, startYear, + yearReadOnly = false, }: MonthPickerProps) => { const [open, setOpen] = useState(false); @@ -78,6 +80,7 @@ export const DateMonthPicker = ({ currentMonth={parsedDate} onMonthChange={handleSelect} startYear={startYear} + yearReadOnly={yearReadOnly} /> diff --git a/packages/common/business_components/src/ui/date_month_picker/mothPicker.tsx b/packages/common/business_components/src/ui/date_month_picker/mothPicker.tsx index 6afbde5e6..b5bc10ba5 100644 --- a/packages/common/business_components/src/ui/date_month_picker/mothPicker.tsx +++ b/packages/common/business_components/src/ui/date_month_picker/mothPicker.tsx @@ -29,9 +29,10 @@ export type MonthPickerProps = { shouldClosePopover?: boolean ) => void; startYear?: number; + yearReadOnly?: boolean; }; -export function MonthPicker({ currentMonth, onMonthChange, startYear }: MonthPickerProps) { +export function MonthPicker({ currentMonth, onMonthChange, startYear, yearReadOnly }: MonthPickerProps) { const today = startOfToday(); const currentYear = today.getFullYear(); @@ -73,6 +74,7 @@ const selectedYear = parseInt(yearFromProp);