[cs] WIP: 알림톡발송이력관리 페이지

This commit is contained in:
2026-04-13 15:27:31 +09:00
parent 9d18ef7527
commit 43fe3a1a99
16 changed files with 702 additions and 56 deletions
@@ -12,7 +12,7 @@ import { Popover, PopoverContent, PopoverTrigger } from "../popover";
import "./input-date-picker.css";
export interface InputDatePickerProps {
value?: Date;
value?: Date | null;
defaultValue?: Date;
onChange?: (date: Date | undefined) => void;
placeholder?: string;
@@ -34,7 +34,7 @@ export function InputDatePicker({
const [internalDate, setInternalDate] = useState<Date | undefined>(
defaultValue,
);
const [month, setMonth] = useState<Date | undefined>(
const [month, setMonth] = useState<Date | null | undefined>(
isControlled ? controlledValue : defaultValue,
);
@@ -112,9 +112,9 @@ export function InputDatePicker({
>
<Calendar
mode="single"
selected={date}
selected={date ?? undefined}
captionLayout="dropdown"
month={month}
month={month ?? undefined}
onMonthChange={setMonth}
onSelect={(newDate) => {
handleDateChange(newDate);