Skip to content

Commit

Permalink
fix(inheritance-report): separating texts
Browse files Browse the repository at this point in the history
  • Loading branch information
albinagu committed Nov 29, 2024
1 parent 918cf3b commit 1f2b61a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { format as formatNationalId } from 'kennitala'
import { removeCountryCode } from '@island.is/application/ui-components'
import { m } from '../../lib/messages'
import { RelationEnum } from '../../types'
import { PREPAID_INHERITANCE } from '../../lib/constants'

export const applicant = buildSection({
id: 'applicantsInformation',
Expand All @@ -18,7 +19,10 @@ export const applicant = buildSection({
buildMultiField({
id: 'applicant',
title: m.applicantsInfo,
description: m.applicantsInfoSubtitle,
description: ({ answers }) =>
answers.applicationFor === PREPAID_INHERITANCE
? m.applicantsInfoPrePaidSubtitle
: m.applicantsInfoSubtitle,
children: [
buildTextField({
id: 'applicant.nationalId',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
shouldShowCustomSpouseShare,
valueToNumber,
} from '../../lib/utils/helpers'
import { PREPAID_INHERITANCE } from '../../lib/constants'

export const heirs = buildSection({
id: 'heirs',
Expand Down Expand Up @@ -81,7 +82,10 @@ export const heirs = buildSection({
buildMultiField({
id: 'heirs',
title: m.heirsAndPartition,
description: m.heirsAndPartitionDescription,
description: ({ answers }) =>
answers.applicationFor === PREPAID_INHERITANCE
? m.heirsAndPartitionPrePaidDescription
: m.heirsAndPartitionDescription,
children: [
buildDescriptionField({
id: 'heirs.total',
Expand Down
22 changes: 17 additions & 5 deletions libs/application/templates/inheritance-report/src/lib/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ export const m = defineMessages({
'Vinsamlegast farðu yfir upplýsingarnar og athugaðu hvort þær séu réttar.',
description: '',
},
applicantsInfoPrePaidSubtitle: {
id: 'ir.application:applicantsInfoPrePaidSubtitle',
defaultMessage:
'Vinsamlegast farðu yfir upplýsingarnar og staðfestu hvort þær séu réttar.',
description: '',
},
applicantsPrePaidInfoSubtitle: {
id: 'ir.application:applicantsPrePaidInfoSubtitle',
defaultMessage:
Expand Down Expand Up @@ -345,6 +351,11 @@ export const m = defineMessages({
'Vinsamlegast tilgreindu allar hjúskapareignir beggja hjóna utan einstaklingsatvinnurekstrar á dánardegi hins látna. Einnig séreign hins látna. Ef hinn látni átti ekki fasteign vinsamlegast haltu áfram í ferlinu.',
description: '',
},
propertiesDescriptionPrePaidAssets: {
id: 'ir.application:propertiesDescriptionPrePaidAssets#markdown',
defaultMessage: 'Lorem ipsum lorem ipsum',
description: '',
},
propertiesDescriptionInventory: {
id: 'ir.application:propertiesDescriptionInventory#markdown',
defaultMessage:
Expand Down Expand Up @@ -395,11 +406,6 @@ export const m = defineMessages({
},

// Estate Properties - Prepaid
propertiesDescriptionPrePaidAssets: {
id: 'ir.application:propertiesDescriptionPrePaidAssets#markdown',
defaultMessage: 'Lorem ipsum lorem ipsum',
description: '',
},
propertiesDescriptionPrePaidStocks: {
id: 'ir.application:propertiesDescriptionPrePaidStocks#markdown',
defaultMessage: 'Lorem ipsum lorem ipsum',
Expand Down Expand Up @@ -1376,6 +1382,12 @@ export const m = defineMessages({
'Skrá skal netfang erfingja vegna tilkynninga skattstjóra skv. 9. og 10. gr. laga nr. 14/2004.',
description: '',
},
heirsAndPartitionPrePaidDescription: {
id: 'ir.application:heirsAndPartitionPrePaidDescription',
defaultMessage:
'Skrá skal netfang erfingja vegna tilkynninga skattstjóra skv. 9. og 10. gr. laga nr. 14/2004.',
description: '',
},
heirsReminderToFillInSpouse: {
id: 'ir.application:heirsReminderToFillInSpouse',
defaultMessage: 'Athugið að passa þarf að skrá inn upplýsingar um maka.',
Expand Down

0 comments on commit 1f2b61a

Please sign in to comment.