mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-07-20 10:41:52 +00:00
Added test covering custom formatting in DateInput
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
import { ReactDatePickerProps } from 'react-datepicker';
|
||||
import { FC } from 'react';
|
||||
import { DateInput } from '../DateInput';
|
||||
import { STANDARD_DATE_AND_TIME_FORMAT } from '../helpers/date';
|
||||
|
||||
export type DateTimeInputProps = Omit<ReactDatePickerProps, 'showTimeSelect' | 'dateFormat' | 'timeIntervals'>;
|
||||
|
||||
export const DateTimeInput: FC<DateTimeInputProps> = (props) => (
|
||||
<DateInput
|
||||
{...props}
|
||||
dateFormat="yyyy-MM-dd HH:mm"
|
||||
dateFormat={STANDARD_DATE_AND_TIME_FORMAT}
|
||||
showTimeSelect
|
||||
timeIntervals={5}
|
||||
timeIntervals={10}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user