Skip to content

Commit 17af9ef

Browse files
committed
init disabled range logic
1 parent fff171a commit 17af9ef

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/hooks/useRangeDisabled.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default function useRangeDisabled<DateType>(
1616
return true;
1717
}
1818

19-
if (startDate) {}
19+
if (startDate) {
20+
}
2021
}
2122
}

src/interface.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,6 @@ export type OnPanelChange<DateType> = (
9292
) => void;
9393

9494
export type EventValue<DateType> = DateType | null;
95-
export type RangeValue<DateType> = [EventValue<DateType>, EventValue<DateType>] | null;
95+
export type RangeValue<DateType> =
96+
| [EventValue<DateType>, EventValue<DateType>]
97+
| null;

0 commit comments

Comments
 (0)