Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIJN-9890-bug/Add filter and sort for ListPagePaginated implementations #1670

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/client/pages/AVG/AVGList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export function AVGList() {

return (
<ListPagePaginated
items={avgVerzoeken}
items={avgVerzoeken
.filter(tableConfig[params.kind].filter)
.sort(tableConfig[params.kind].sort)}
backLinkTitle={ThemaTitles.AVG}
title={tableConfig[params.kind].title}
appRoute={AppRoutes['AVG/LIST']}
Expand Down
4 changes: 3 additions & 1 deletion src/client/pages/Bodem/BodemList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export function BodemList() {

return (
<ListPagePaginated
items={items}
items={items
.filter(tableConfig[params.kind].filter)
.sort(tableConfig[params.kind].sort)}
backLinkTitle={ThemaTitles.BODEM}
title={tableConfig[params.kind].title}
appRoute={AppRoutes['BODEM/LIST']}
Expand Down
4 changes: 3 additions & 1 deletion src/client/pages/Burgerzaken/BurgerZakenList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export function BurgerZakenList() {

return (
<ListPagePaginated
items={documents}
items={documents
.filter(tableConfig[params.kind].filter)
.sort(tableConfig[params.kind].sort)}
backLinkTitle={ThemaTitles.BURGERZAKEN}
title={tableConfig[params.kind].title}
appRoute={AppRoutes['BURGERZAKEN/LIST']}
Expand Down
6 changes: 4 additions & 2 deletions src/client/pages/VergunningenV2/VergunningenList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ export function VergunningenList() {
const vergunningen =
addLinkElementToProperty<VergunningFrontendV2>(vergunningenFiltered);

const appRouteBack = AppRoutes['VERGUNNINGEN'];
const appRouteBack = AppRoutes.VERGUNNINGEN;

return (
<ListPagePaginated
items={vergunningen}
items={vergunningen
.filter(tableConfig[params.kind].filter)
.sort(tableConfig[params.kind].sort)}
OscarBakker marked this conversation as resolved.
Show resolved Hide resolved
backLinkTitle={ThemaTitles.VERGUNNINGEN}
title={title}
appRoute={AppRoutes['VERGUNNINGEN/LIST']}
Expand Down
Loading