Updated ShortUrlsFilteringBar test

This commit is contained in:
Alejandro Celaya
2022-05-14 16:36:45 +02:00
parent 30aeba0af2
commit ed366fa4cc
4 changed files with 82 additions and 102 deletions

View File

@@ -1,5 +1,6 @@
import DateInput from '../DateInput';
import { DateRange } from './types';
import { endOfDay } from 'date-fns';
interface DateRangeRowProps extends DateRange {
onStartDateChange: (date: Date | null) => void;
@@ -29,7 +30,7 @@ const DateRangeRow = (
isClearable
minDate={startDate ?? undefined}
disabled={disabled}
onChange={onEndDateChange}
onChange={(date) => onEndDateChange(date && endOfDay(date))}
/>
</div>
</div>