Skip to content

Commit

Permalink
fix: unneeded class
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Sep 13, 2023
1 parent d9da821 commit ab89a46
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/components/map/layers/EventPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const getDataRows = ({ displayElements, dataValues, styleDataItem, value }) => {
) {
dataRows.push(
<tr key={styleDataItem.id}>
<th>{styleDataItem.name}</th>
<td>{styleDataItem.name}</td>
<td>{hasValue(value) ? value : i18n.t('Not set')}</td>
</tr>
)
Expand All @@ -48,7 +48,7 @@ const getDataRows = ({ displayElements, dataValues, styleDataItem, value }) => {

dataRows.push(
<tr key={id}>
<td className={classes.header}>{name}</td>
<td>{name}</td>
<td>{formattedValue}</td>
</tr>
)
Expand Down Expand Up @@ -103,7 +103,7 @@ const EventPopup = ({
})}
{type === 'Point' && (
<tr>
<td className={classes.header}>
<td>
{eventCoordinateFieldName ||
i18n.t('Event location')}
</td>
Expand All @@ -114,17 +114,13 @@ const EventPopup = ({
)}
{orgUnitName && (
<tr>
<td className={classes.header}>
{i18n.t('Organisation unit')}
</td>
<td>{i18n.t('Organisation unit')}</td>
<td>{orgUnitName}</td>
</tr>
)}
{eventDate && (
<tr>
<td className={classes.header}>
{i18n.t('Event time')}
</td>
<td>{i18n.t('Event time')}</td>
<td>{formatTime(eventDate)}</td>
</tr>
)}
Expand Down

0 comments on commit ab89a46

Please sign in to comment.