Skip to content

Commit

Permalink
fix(signature-collection): updating card
Browse files Browse the repository at this point in the history
  • Loading branch information
albina committed Oct 16, 2024
1 parent 7b3c0cd commit 2c99057
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 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
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 2c99057

Please sign in to comment.