-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fix(driving-license): digital license, no pickup * chore: nx format:write update dirty files --------- Co-authored-by: andes-it <builders@andes.is> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
fefe04c
commit 8e2d87a
Showing
8 changed files
with
60 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 0 additions & 51 deletions
51
libs/application/templates/driving-license/src/forms/draft/subSectionDelivery.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...pplication/templates/driving-license/src/forms/prerequisites/sectionDigitalLicenseInfo.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { | ||
buildAlertMessageField, | ||
buildMultiField, | ||
buildSubSection, | ||
} from '@island.is/application/core' | ||
import { m } from '../../lib/messages' | ||
import { B_TEMP } from '../../lib/constants' | ||
|
||
export const sectionDigitalLicenseInfo = buildSubSection({ | ||
id: 'digitalLicenseInfo', | ||
title: m.digitalLicenseInfoTitle, | ||
children: [ | ||
buildMultiField({ | ||
id: 'info', | ||
title: m.digitalLicenseInfoTitle, | ||
description: m.digitalLicenseInfoDescription, | ||
children: [ | ||
buildAlertMessageField({ | ||
id: 'digitalLicenseInfo', | ||
title: m.digitalLicenseInfoAlertTitle, | ||
message: ({ answers }) => | ||
answers.applicationFor === B_TEMP | ||
? m.digitalLicenseInfoAlertMessageBTemp | ||
: m.digitalLicenseInfoAlertMessageBFull, | ||
alertType: 'info', | ||
}), | ||
], | ||
}), | ||
], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters