mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 04:25:39 +01:00
Update DateFilter.tsx
This commit is contained in:
parent
4c3f3cbc71
commit
e9f657492d
1 changed files with 3 additions and 3 deletions
|
|
@ -177,9 +177,9 @@ const CustomRange = ({ startDate, endDate, unit, onClick }) => {
|
||||||
<>{intl.formatDate(startDate, { year: 'numeric', month: 'long' })}</>
|
<>{intl.formatDate(startDate, { year: 'numeric', month: 'long' })}</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
{intl.formatDate(startDate, { dateStyle: 'medium' })}
|
{isSameDay(startDate, endDate)
|
||||||
{!isSameDay(startDate, endDate) &&
|
? intl.formatDate(startDate, { dateStyle: 'medium' })
|
||||||
` — ${intl.formatDate(endDate, { dateStyle: 'medium' })}`}
|
: intl.formatDateTimeRange(startDate, endDate)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue