diff --git a/app/ui/ViewLocationCard.tsx b/app/ui/ViewLocationCard.tsx index b006b32..0280ccb 100644 --- a/app/ui/ViewLocationCard.tsx +++ b/app/ui/ViewLocationCard.tsx @@ -16,7 +16,7 @@ export interface ViewLocationCardProps { export const ViewLocationCard:FC = ({location, userSettings}) => { - const { _id, name: locationName, yearMonth, bills, tenantName, tenantStreet, tenantTown } = location; + const { _id, name: locationName, yearMonth, bills, tenantName, tenantStreet, tenantTown, generateTenantCode } = location; const t = useTranslations("home-page.location-card"); @@ -56,19 +56,25 @@ export const ViewLocationCard:FC = ({location, userSettin

: null } -

{t("payment-info-header")}

- - + { + userSettings?.show2dCodeInMonthlyStatement && generateTenantCode ? + <> +

{t("payment-info-header")}

+
    +
  • {t("payment-iban-label")}
    {paymentParams.IBAN}
  • +
  • {t("payment-recipient-label")}
    {paymentParams.Primatelj}
  • +
  • {t("payment-recipient-address-label")}
    {paymentParams.AdresaPrimatelja}
  • +
  • {t("payment-recipient-city-label")}
    {paymentParams.SjedistePrimatelja}
  • +
  • {t("payment-amount-label")}
    {paymentParams.Iznos}
  • +
  • {t("payment-description-label")}
    {paymentParams.OpisPlacanja}
  • +
  • {t("payment-model-label")}
    {paymentParams.ModelPlacanja}
  • +
  • {t("payment-reference-label")}
    {paymentParams.PozivNaBroj}
  • +
  • {t("payment-purpose-code-label")}
    {paymentParams.SifraNamjene}
  • +
+ + + : null + } ); }; \ No newline at end of file