mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
updated startHours and endHours useState
This commit is contained in:
parent
87d044d28c
commit
a7a979c2e4
1 changed files with 2 additions and 2 deletions
|
|
@ -28,8 +28,8 @@ export function TimeRangePickerForm({
|
||||||
onClose,
|
onClose,
|
||||||
}: TimeRangePickerFormProps) {
|
}: TimeRangePickerFormProps) {
|
||||||
const [date, setDate] = useState(defaultStartDate || new Date());
|
const [date, setDate] = useState(defaultStartDate || new Date());
|
||||||
const [startHour, setStartHour] = useState(0);
|
const [startHour, setStartHour] = useState(defaultStartDate?.getHours() || 0);
|
||||||
const [endHour, setEndHour] = useState(23);
|
const [endHour, setEndHour] = useState(defaultEndDate?.getHours() || 23);
|
||||||
const { formatMessage, labels } = useMessages();
|
const { formatMessage, labels } = useMessages();
|
||||||
|
|
||||||
const disabled = startHour > endHour;
|
const disabled = startHour > endHour;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue