File tree 1 file changed +4
-4
lines changed
src/components/date-filter-v2
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ import {
16
16
type DateFilterRange ,
17
17
type RelativeDateFilterValue ,
18
18
} 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' ;
21
21
22
22
export default function DateFilterV2 ( {
23
23
label,
@@ -57,10 +57,10 @@ export default function DateFilterV2({
57
57
58
58
const displayValue = useMemo < string > ( ( ) => {
59
59
if ( ! dates . end || ! dates . start ) return 'Unknown' ;
60
- if ( dates . end === 'now' && isRelativeDateValue ( dates . start ) )
60
+ if ( dates . end === 'now' && isRelativeDateFilterValue ( dates . start ) )
61
61
return DATE_FILTER_RELATIVE_VALUES [ dates . start ] . label ;
62
62
63
- return `${ stringifyDateValue ( dates . start , 'pretty' ) } - ${ stringifyDateValue ( dates . end , 'pretty' ) } ` ;
63
+ return `${ stringifyDateFilterValue ( dates . start , 'pretty' ) } - ${ stringifyDateFilterValue ( dates . end , 'pretty' ) } ` ;
64
64
} , [ dates ] ) ;
65
65
66
66
return (
You can’t perform that action at this time.
0 commit comments