Compare commits

...

4 Commits

Author SHA1 Message Date
Shaheer Kochai
2df1bd64d7 Merge branch 'main' into fix/allow-custom-input-in-range-picker 2025-03-10 11:32:51 +04:30
ahmadshaheer
7417392acb fix: fix the issue of not being able to type in to/from of custom range picker 2025-01-28 10:12:07 +04:30
ahmadshaheer
42589b4ed4 refactor: centralize uPlot x-axis values formatting 2025-01-28 10:12:07 +04:30
ahmadshaheer
5f28f03d54 feat: change the format of uplot x axis to 24 hours 2025-01-28 10:08:54 +04:30

View File

@@ -1,7 +1,6 @@
import './RangePickerModal.styles.scss';
import { DatePicker } from 'antd';
import { DATE_TIME_FORMATS } from 'constants/dateTimeFormats';
import { DateTimeRangeType } from 'container/TopNav/CustomDateTimeModal';
import { LexicalContext } from 'container/TopNav/DateTimeSelectionV2/config';
import dayjs, { Dayjs } from 'dayjs';
@@ -70,9 +69,6 @@ function RangePickerModal(props: RangePickerModalProps): JSX.Element {
disabledDate={disabledDate}
allowClear
showTime
format={(date: Dayjs): string =>
date.tz(timezone.value).format(DATE_TIME_FORMATS.ISO_DATETIME)
}
onOk={onModalOkHandler}
// eslint-disable-next-line react/jsx-props-no-spreading
{...(selectedTime === 'custom' && {