+ <$GridCell
+ $colSpan={11}
+ style={{
+ padding: theme.spacing.m,
+ }}
>
- <$GridCell
- $colSpan={11}
- style={{
- padding: theme.spacing.m,
- }}
- >
- <$CalculatorContainer>
- <$Section className="">
- <$CalculatorTableRow>
- <$ViewField>
- {t(`${translationsBase}.firstInstalment`)}
- $ViewField>
- {formatFloatToCurrency(
- data.calculatedBenefitAmount -
- data.pendingInstalment.amount,
- 'EUR',
- 'fi-FI',
- 0
- )}{' '}
- $CalculatorTableRow>
- $Section>
- <$Section className="">
- <$CalculatorTableRow>
- <$ViewField>
- {[
- INSTALMENT_STATUSES.WAITING,
- INSTALMENT_STATUSES.ERROR_IN_TALPA,
- INSTALMENT_STATUSES.CANCELLED,
- INSTALMENT_STATUSES.ACCEPTED,
- ].includes(
- data.pendingInstalment.status as INSTALMENT_STATUSES
- ) ? (
- {secondInstalmentText}
- ) : (
- secondInstalmentText
- )}
- $ViewField>
-
- {renderInstalmentTagPerStatus(t, data.pendingInstalment)}
- {formatFloatToCurrency(
- data.pendingInstalment.amount,
- 'EUR',
- 'fi-FI',
- 0
- )}
-
- $CalculatorTableRow>
- $Section>
- <$Section className="subtotal">
- <$CalculatorTableRow>
- <$ViewField isBold isBig>
- {t(`${translationsBase}.total`)}
- $ViewField>
- {formatFloatToCurrency(
- data.calculatedBenefitAmount,
- 'EUR',
- 'fi-FI',
- 0
- )}
- $CalculatorTableRow>
- $Section>
- $CalculatorContainer>
- $GridCell>
-
- $DecisionCalculatorAccordion>
- )}
+ <$CalculatorContainer>
+