Skip to content

Commit

Permalink
chore: update weight at birth postfix
Browse files Browse the repository at this point in the history
Also remove inputFieldWidth prop
  • Loading branch information
Zangetsu101 committed Jul 9, 2024
1 parent 7f3902d commit 87c6a0f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
14 changes: 3 additions & 11 deletions src/form/birth/optional-fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,8 @@ export const weightAtBirth: SerializedFormField = {
parameters: [0, 6]
}
],
postfix: 'Kg',
mapping: getFieldMapping(
'weightAtBirth',
certificateHandlebars.weightAtBirth
),
inputFieldWidth: '78px'
postfix: 'kilograms (kg)',
mapping: getFieldMapping('weightAtBirth', certificateHandlebars.weightAtBirth)
}

export const multipleBirth: SerializedFormField = {
Expand Down Expand Up @@ -94,9 +90,5 @@ export const multipleBirth: SerializedFormField = {
parameters: [2]
}
],
mapping: getFieldMapping(
'multipleBirth',
certificateHandlebars.multipleBirth
),
inputFieldWidth: '64px'
mapping: getFieldMapping('multipleBirth', certificateHandlebars.multipleBirth)
}
1 change: 0 additions & 1 deletion src/form/common/common-optional-fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export const getAgeOfIndividualInYears = (
validator: validators,
conditionals,
postfix: 'years',
inputFieldWidth: '78px',
...(certificateHandlebar && {
mapping: getFieldMapping('ageOfIndividualInYears', certificateHandlebar)
})
Expand Down
3 changes: 1 addition & 2 deletions src/form/death/custom-fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export function getNumberOfDependants(): SerializedFormField {
initialValue: '',
validator: [],
mapping: getCustomFieldMapping(fieldId),
conditionals: [],
inputFieldWidth: '64px'
conditionals: []
}
}
1 change: 0 additions & 1 deletion src/form/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ export interface INumberFormField extends IFormFieldBase {
type: typeof NUMBER
step?: number
max?: number
inputFieldWidth?: string
inputWidth?: number
}
export interface IBigNumberFormField extends IFormFieldBase {
Expand Down

0 comments on commit 87c6a0f

Please sign in to comment.