Skip to content

Commit

Permalink
ADD: button to undo choice
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremiahUy committed Feb 11, 2025
1 parent 37228e4 commit 808b0db
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion apps/frontend/src/pages/PvkBehovPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export const PvkBehovPage = () => {
onSubmit={submit}
initialValues={mapPvkDokumentToFormValue(pvkdokument as IPvkDokument)}
>
{({ values, submitForm }) => (
{({ setFieldValue, values, submitForm }) => (
<Form>
<div id="ytterlige-egenskaper">
<FieldArray name="ytterligereEgenskaper">
Expand Down Expand Up @@ -444,6 +444,16 @@ export const PvkBehovPage = () => {
>
Avbryt
</Button>

<Button
type="button"
variant="tertiary"
onClick={() => {
setFieldValue('skalUtforePvk', null)
}}
>
Nullstill svar
</Button>
</div>
</Form>
)}
Expand Down

0 comments on commit 808b0db

Please sign in to comment.