Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #304 from frameless/feature/HP-146/voorgenomen
Browse files Browse the repository at this point in the history
ADD voorgenomen huwelijk button
  • Loading branch information
lencodes authored Apr 20, 2023
2 parents 936acdb + 4a826b4 commit 9a695ac
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pages/voorgenomen-huwelijk/betalen/succes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ export default function HuwelijksplannerStep0() {
setTodos(Object.values(items).filter((item: any) => !item.result));
}, [huwelijk]);

const handleVoorgenomenHuwelijkMelden = () => {
HuwelijkService.huwelijkPatchItem(marriageOptions.huwelijk.id, { melding: true }).then(() => {
// melding is nu true
});
};

// const isValidMinWitnesses = (data: HuwelijksplannerState) => {
// // Return `true` for valid when every partner has reached the minimum amount of witnesses
// return data.witnesses.length >= data.minWitnessPerPartner * 2;
Expand Down Expand Up @@ -395,6 +401,8 @@ export default function HuwelijksplannerStep0() {
</>
)}

<Button onClick={handleVoorgenomenHuwelijkMelden}>Voorgenomen huwelijk melden</Button>

{!huwelijk && isLoading && <Skeleton height="300px" />}
</PageContentMain>
</PageContent>
Expand Down

1 comment on commit 9a695ac

@vercel
Copy link

@vercel vercel bot commented on 9a695ac Apr 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.