Skip to content

Commit ebe027f

Browse files
Rename some functions
1 parent b7372c2 commit ebe027f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/date-filter-v2/date-filter-v2.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import {
1616
type DateFilterRange,
1717
type RelativeDateFilterValue,
1818
} from './date-filter-v2.types';
19-
import isRelativeDateValue from './helpers/is-relative-date-filter-value';
20-
import stringifyDateValue from './helpers/stringify-date-value';
19+
import isRelativeDateFilterValue from './helpers/is-relative-date-filter-value';
20+
import stringifyDateFilterValue from './helpers/stringify-date-value';
2121

2222
export default function DateFilterV2({
2323
label,
@@ -57,10 +57,10 @@ export default function DateFilterV2({
5757

5858
const displayValue = useMemo<string>(() => {
5959
if (!dates.end || !dates.start) return 'Unknown';
60-
if (dates.end === 'now' && isRelativeDateValue(dates.start))
60+
if (dates.end === 'now' && isRelativeDateFilterValue(dates.start))
6161
return DATE_FILTER_RELATIVE_VALUES[dates.start].label;
6262

63-
return `${stringifyDateValue(dates.start, 'pretty')} - ${stringifyDateValue(dates.end, 'pretty')}`;
63+
return `${stringifyDateFilterValue(dates.start, 'pretty')} - ${stringifyDateFilterValue(dates.end, 'pretty')}`;
6464
}, [dates]);
6565

6666
return (

0 commit comments

Comments
 (0)