From e3ede67c3ba361e3621c9ce202df62805e1ac113 Mon Sep 17 00:00:00 2001 From: oscarbakker Date: Mon, 16 Dec 2024 11:51:02 +0100 Subject: [PATCH] Add filter and sort to parkeren list page --- src/client/pages/Parkeren/ParkerenList.tsx | 4 +++- src/client/pages/Parkeren/useParkerenData.hook.tsx | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/client/pages/Parkeren/ParkerenList.tsx b/src/client/pages/Parkeren/ParkerenList.tsx index bd52b91dc..5e4fb8919 100644 --- a/src/client/pages/Parkeren/ParkerenList.tsx +++ b/src/client/pages/Parkeren/ParkerenList.tsx @@ -23,7 +23,9 @@ export function ParkerenList() { return ( = new Set([ CaseType.TouringcarJaarontheffing, ]); -function getVergunningenFromThemaVergunningen( +function getParkeervergunningen( content: VergunningFrontendV2[] | Vergunning[] | null ) { return addLinkElementToProperty( @@ -47,7 +47,7 @@ export function useParkerenData() { : VERGUNNINGENv2.content) ?? []; const parkeerVergunningenFromThemaVergunningen = - getVergunningenFromThemaVergunningen(vergunningen); + getParkeervergunningen(vergunningen); const hasMijnParkerenVergunningen = !!PARKEREN.content?.isKnown; return {