[cs] WIP: 알림톡발송이력관리 페이지
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user