- {CALCULATION_ROW_TYPES.HELSINKI_BENEFIT_MONTHLY_EUR ===
- row.rowType && (
- <$CalculatorTableRow>
- <$ViewField isBold>
- {t(`${translationsBase}.acceptedBenefit`)}
- $ViewField>
- $CalculatorTableRow>
- )}
- <$CalculatorTableRow
- isNewSection={isDateRange}
- style={{
- marginBottom: '7px',
- }}
- >
- <$ViewField
- isBold={isDateRange || isDescriptionRowType}
- isBig={isDateRange}
+ const isPerMonth =
+ CALCULATION_PER_MONTH_ROW_TYPES.includes(row.rowType);
+ return (
+
+ {CALCULATION_ROW_TYPES.HELSINKI_BENEFIT_MONTHLY_EUR ===
+ row.rowType && (
+ <$CalculatorTableRow>
+ <$ViewField isBold>
+ {t(`${translationsBase}.acceptedBenefit`)}
+ $ViewField>
+ $CalculatorTableRow>
+ )}
+ <$CalculatorTableRow
+ isNewSection={isDateRange}
+ style={{
+ marginBottom: '7px',
+ }}
>
- {row.descriptionFi}
- $ViewField>
- {!isDescriptionRowType && (
<$ViewField
- isBold
- style={{ marginRight: theme.spacing.xl4 }}
+ isBold={isDateRange || isDescriptionRowType}
+ isBig={isDateRange}
>
- {formatFloatToCurrency(row.amount)}
- {isPerMonth && t('common:utility.perMonth')}
+ {row.descriptionFi}
$ViewField>
- )}
- $CalculatorTableRow>
-
- );
- })}
+ {!isDescriptionRowType && (
+ <$ViewField
+ isBold
+ style={{ marginRight: theme.spacing.xl4 }}
+ >
+ {formatFloatToCurrency(row.amount)}
+ {isPerMonth && t('common:utility.perMonth')}
+ $ViewField>
+ )}
+ $CalculatorTableRow>
+
+ );
+ })}
+ $Section>
+ );
+ })}
+ $CalculatorContainer>
+ $GridCell>
+