Skip to content

Commit 705715b

Browse files
committed
Fix display
1 parent 7d0e832 commit 705715b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/components/exploitations/exploitations-list-item.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Link from 'next/link.js'
44
import {usageIcons, usageLabels} from '@/components/map/legend-colors.js'
55
import ListItem from '@/components/ui/ListItem/index.js'
66
import {getDeclarantTitleFromDeclarant} from '@/lib/declarants.js'
7-
import {formatDateRange} from '@/lib/format-date.js'
87
import 'moment/locale/fr'
98

109
const severityMap = {
@@ -23,15 +22,15 @@ const ExploitationsListItem = ({exploitation, preleveur, index, hidePreleveur =
2322

2423
if (exploitation.minDeclaredDate && exploitation.maxDeclaredDate) {
2524
metas.push({
26-
content: `Volumes déclarés : ${formatDateRange(exploitation.minDeclaredDate, exploitation.maxDeclaredDate)}`,
25+
content: `Volumes déclarés : ${moment(exploitation.minDeclaredDate).format('MMM YYYY')} - ${moment(exploitation.maxDeclaredDate).format('MMM YYYY')}`,
2726
iconId: 'fr-icon-calendar-2-line'
2827
})
2928
}
3029

3130
if (exploitation.lastDeclarationAt) {
3231
metas.push({
3332
content: `Dernière déclaration : ${moment(exploitation.lastDeclarationAt).fromNow(false)}`,
34-
iconId: 'fr-icon-calendar-3-line'
33+
iconId: 'fr-icon-file-line'
3534
})
3635
}
3736

0 commit comments

Comments
 (0)