Commit 0dc09297 authored by Marjolaine Bodin's avatar Marjolaine Bodin
Browse files

#486 remove icon for release date

parent 35c35061
Pipeline #44215 passed with stage
in 2 minutes and 19 seconds
......@@ -128,7 +128,11 @@ function getColumns({ showProposalLinks, showInvestigationStats, showFiles }) {
text: 'Release',
dataField: 'releaseDate',
formatter: (_, investigation) =>
dateFormatter(investigation.releaseDate, INVESTIGATION_DATE_FORMAT),
dateFormatter(
investigation.releaseDate,
INVESTIGATION_DATE_FORMAT,
false
),
sort: true,
responsiveHeaderStyle: getLgHeaderStyle(110, false),
},
......
......@@ -61,7 +61,11 @@ export function startDateFormatter(investigation) {
placement="bottom"
overlay={calendarHoverFocus}
>
{dateFormatter(investigation.startDate, INVESTIGATION_DATE_FORMAT)}
{dateFormatter(
investigation.startDate,
INVESTIGATION_DATE_FORMAT,
true
)}
</OverlayTrigger>
</>
) : (
......@@ -69,10 +73,10 @@ export function startDateFormatter(investigation) {
);
}
export function dateFormatter(date, format) {
export function dateFormatter(date, format, hasIcon) {
return date ? (
<span>
<Glyphicon glyph="calendar" style={{ marginRight: '5px' }} />
{hasIcon && <Glyphicon glyph="calendar" style={{ marginRight: '5px' }} />}
{moment(date).format(format)}
</span>
) : (
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment