Skip to content

Commit

Permalink
fix(signature-collection): sc fixes 16.10 (#16428)
Browse files Browse the repository at this point in the history
* fix(signature-collection): updating card

* cleanup

* chore: nx format:write update dirty files

---------

Co-authored-by: andes-it <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 16, 2024
1 parent 525e166 commit d356a2f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,17 +277,17 @@ export const Draft: Form = buildForm({
doesNotRequireAnswer: true,
title: '',
items: ({ answers }) => {
return (answers.constituency as string[]).map((c: string) => ({
heading:
getValueViaPath(answers, 'list.name') +
' - ' +
c.split('|')[1],
progressMeter: {
currentProgress: 0,
maxProgress: 350,
withLabel: true,
},
}))
return (answers.constituency as string[]).map(
(constituency: string) => ({
heading: constituency.split('|')[1],
eyebrow: getValueViaPath(answers, 'list.name'),
progressMeter: {
currentProgress: 0,
maxProgress: 350,
withLabel: true,
},
}),
)
},
}),
buildSubmitField({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ export const Prerequisites: Form = buildForm({
title: m.constituency,
children: [],
}),
buildSection({
id: 'screen5',
title: m.managersAndSupervisors,
children: [],
}),
buildSection({
id: 'screen6',
title: m.overview,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,52 +169,6 @@ export const m = defineMessages({
description: '',
},

/* Ábyrgðaraðilar */
managersAndSupervisors: {
id: 'plc.application:managersAndSupervisors',
defaultMessage: 'Ábyrgðar-/umsjónaraðilar',
description: '',
},
managersAndSupervisorsTitle: {
id: 'plc.application:managersAndSupervisorsTitle',
defaultMessage: 'Veljið ábyrgðar- og umsjónaraðila',
description: '',
},
managers: {
id: 'plc.application:managers',
defaultMessage: 'Ábyrgðaraðilar',
description: '',
},
managersDescription: {
id: 'plc.application:managersDescription',
defaultMessage:
'Ábyrgðaraðili hefur aðgang að söfnunum í öllum kjördæmum og getur bætt við og eytt umsjónaraðilum. Ábyrgðaraðili getur slegið inn kennitölur meðmælenda af blaði í viðeigandi kjördæmum.',
description: '',
},
addManager: {
id: 'plc.application:addManager',
defaultMessage: 'Bæta við ábyrgðaraðila',
description: '',
},

/* Umsjónaraðilar */
supervisors: {
id: 'plc.application:supervisors',
defaultMessage: 'Umsjónaraðilar',
description: '',
},
supervisorsDescription: {
id: 'plc.application:supervisorsDescription',
defaultMessage:
'Umsjónaraðili sér aðeins þau kjördæmi sem honum hefur verið úthlutað og getur slegið inn kennitölur meðmælenda af blaði í þeim kjördæmum.',
description: '',
},
addSupervisor: {
id: 'plc.application:addSupervisor',
defaultMessage: 'Bæta við umsjónaraðila',
description: '',
},

/* Yfirlit */
overview: {
id: 'plc.application:overview',
Expand Down
1 change: 1 addition & 0 deletions libs/application/types/src/lib/Fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ export type ActionCardListField = BaseField & {
export type ApplicationActionCardProps = Modify<
ActionCardProps,
{
eyebrow?: string
heading?: FormText
text?: FormText
tag?: Modify<ActionCardProps['tag'], { label: FormText }>
Expand Down

0 comments on commit d356a2f

Please sign in to comment.