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

feature/COR-1510-non-clickable-choropleth #4720

Merged
Show file tree
Hide file tree
Changes from all commits
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: 1 addition & 3 deletions packages/app/src/pages/landelijk/gehandicaptenzorg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { createGetStaticProps, StaticProps } from '~/static-props/create-get-sta
import { createGetChoroplethData, createGetContent, getLastGeneratedDate, selectNlData, getLokalizeTexts } from '~/static-props/get-data';
import { ArticleParts, PagePartQueryResult } from '~/types/cms';
import { getBoundaryDateStartUnix } from '~/utils/get-boundary-date-start-unix';
import { useReverseRouter } from '~/utils/use-reverse-router';
import { getLastInsertionDateOfPage } from '~/utils/get-last-insertion-date-of-page';
import { useDynamicLokalizeTexts } from '~/utils/cms/use-dynamic-lokalize-texts';

Expand Down Expand Up @@ -89,7 +88,6 @@ function DisabilityCare(props: StaticProps<typeof getStaticProps>) {
const underReportedDateStart = getBoundaryDateStartUnix(values, 7);

const { commonTexts, formatNumber } = useIntl();
const reverseRouter = useReverseRouter();
const { categoryTexts, metadataTexts, textShared, textNl } = useDynamicLokalizeTexts<LokalizeTexts>(pageText, selectLokalizeTexts);

const metadata = {
Expand Down Expand Up @@ -250,7 +248,7 @@ function DisabilityCare(props: StaticProps<typeof getStaticProps>) {
},
}}
dataOptions={{
getLink: reverseRouter.vr.gehandicaptenzorg,
isPercentage: true,
Amber-Taal-Work marked this conversation as resolved.
Show resolved Hide resolved
}}
/>
</ChoroplethTile>
Expand Down
1 change: 0 additions & 1 deletion packages/common/src/data/reverse-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export function getReverseRouter(isMobile: boolean) {
positiefGetesteMensen: (code: string) => `/veiligheidsregio/${code}/positief-geteste-mensen`,
sterfte: (code: string) => `/veiligheidsregio/${code}/sterfte`,
ziekenhuisopnames: (code: string) => `/veiligheidsregio/${code}/ziekenhuis-opnames`,
gehandicaptenzorg: (code: string) => `/veiligheidsregio/${code}/gehandicaptenzorg`,
thuiswonendeOuderen: (code: string) => `/veiligheidsregio/${code}/thuiswonende-ouderen`,
rioolwater: (code: string) => `/veiligheidsregio/${code}/rioolwater`,
gedrag: (code: string) => `/veiligheidsregio/${code}/gedrag`,
Expand Down