Skip to content

Commit

Permalink
fix(driving-license): update texts (#16548)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
albinagu and kodiakhq[bot] authored Oct 24, 2024
1 parent 8ec5136 commit deb5210
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ export const subSectionOtherCountry = buildSubSection({
{
value: NO,
label: m.noDeprivedDrivingLicenseInOtherCountryTitle,
subLabel:
m.noDeprivedDrivingLicenseInOtherCountryDescription
.defaultMessage,
subLabel: m.noDeprivedDrivingLicenseInOtherCountryDescription,
},
],
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,13 @@ export const sectionApplicationFor = (
let options = [
{
label: m.applicationForTempLicenseTitle,
subLabel:
m.applicationForTempLicenseDescription.defaultMessage,
subLabel: m.applicationForTempLicenseDescription,
value: B_TEMP,
disabled: !!currentLicense,
},
{
label: m.applicationForFullLicenseTitle,
subLabel:
m.applicationForFullLicenseDescription.defaultMessage,
subLabel: m.applicationForFullLicenseDescription,
value: B_FULL,
disabled: !currentLicense,
},
Expand All @@ -91,8 +89,7 @@ export const sectionApplicationFor = (
if (allow65Renewal) {
options = options.concat({
label: m.applicationForRenewalLicenseTitle,
subLabel:
m.applicationForRenewalLicenseDescription.defaultMessage,
subLabel: m.applicationForRenewalLicenseDescription,
value: B_FULL_RENEWAL_65,
disabled: !currentLicense || age < 65,
})
Expand All @@ -101,7 +98,7 @@ export const sectionApplicationFor = (
if (allowBELicense) {
options = options.concat({
label: m.applicationForBELicenseTitle,
subLabel: m.applicationForBELicenseDescription.defaultMessage,
subLabel: m.applicationForBELicenseDescription,
value: BE,
disabled:
!currentLicense ||
Expand Down
10 changes: 5 additions & 5 deletions libs/application/templates/driving-license/src/lib/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -641,15 +641,15 @@ export const m = defineMessages({
defaultMessage: 'Veldu sýslumannsembætti',
description: 'Choose district commissioner',
},
chooseDistrictCommisionerForFullLicense: {
id: 'dl.application:chooseDistrictCommisionerForFullLicense',
chooseDistrictCommissionerForFullLicense: {
id: 'dl.application:chooseDistrictCommissionerForFullLicense',
defaultMessage:
'Veldu það embætti sýslumanns þar sem þú vilt skila inn bráðabirgðaskírteini og fá afhent nýtt fullnaðarskírteini',
'Veldu það embætti sýslumanns þar sem þú vilt skila inn eldra ökuskírteini og fá afhent nýtt með nýjum réttindunum',
description:
'Choose district commissioner for returning a temporary license and recieve a new full license',
},
chooseDistrictCommisionerForTempLicense: {
id: 'dl.application:chooseDistrictCommisionerForTempLicense',
chooseDistrictCommissionerForTempLicense: {
id: 'dl.application:chooseDistrictCommissionerForTempLicense',
defaultMessage:
'Veldu það embætti sýslumanns sem þú hyggst skila inn gæðamerktri ljósmynd',
description: 'Choose district commissioner for submitting a quality photo',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export const chooseDistrictCommissionerDescription = ({
) === B_TEMP

return applicationForTemp
? m.chooseDistrictCommisionerForTempLicense.defaultMessage
: m.chooseDistrictCommisionerForFullLicense.defaultMessage
? m.chooseDistrictCommissionerForTempLicense
: m.chooseDistrictCommissionerForFullLicense
}

export const hasCompletedPrerequisitesStep =
Expand Down

0 comments on commit deb5210

Please sign in to comment.