From f454fa9ce8f7067da4d85d2d9d5b9aebfeb3b3e7 Mon Sep 17 00:00:00 2001 From: J <93984341+VWSCoronaDashboard18@users.noreply.github.com> Date: Thu, 23 Mar 2023 09:15:59 +0100 Subject: [PATCH] COR-1485-remove-VR-from-GM-sidebar (#4698) * chore: remove VR references from GM sidebar * chore: remove key from sanity --- packages/app/src/domain/layout/gm-layout.tsx | 16 +--------------- packages/cms/src/lokalize/key-mutations.csv | 1 + 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/packages/app/src/domain/layout/gm-layout.tsx b/packages/app/src/domain/layout/gm-layout.tsx index 99e5a94927..8a1c7d4bc3 100644 --- a/packages/app/src/domain/layout/gm-layout.tsx +++ b/packages/app/src/domain/layout/gm-layout.tsx @@ -4,13 +4,10 @@ import { Menu, MenuRenderer } from '~/components/aside/menu'; import { Box } from '~/components/base'; import { ErrorBoundary } from '~/components/error-boundary'; import { AppContent } from '~/components/layout/app-content'; -import { Anchor, Heading, Text } from '~/components/typography'; +import { Heading } from '~/components/typography'; import { VisuallyHidden } from '~/components/visually-hidden'; import { useIntl } from '~/intl'; import { space } from '~/style/theme'; -import { getVrForMunicipalityCode } from '~/utils/get-vr-for-municipality-code'; -import { Link } from '~/utils/link'; -import { useReverseRouter } from '~/utils/use-reverse-router'; import { GmComboBox } from './components/gm-combo-box'; import { useSidebar } from './logic/use-sidebar'; @@ -53,14 +50,11 @@ export function GmLayout(props: GmLayoutProps) { const { commonTexts } = useIntl(); const router = useRouter(); - const reverseRouter = useReverseRouter(); const showMetricLinks = router.route !== '/gemeente'; const isMainRoute = router.route === '/gemeente'; - const vr = getVrForMunicipalityCode(code); - const items = useSidebar({ layout: 'gm', code: code, @@ -105,14 +99,6 @@ export function GmLayout(props: GmLayoutProps) { {commonTexts.gemeente_layout.headings.sidebar} {municipalityName} - {vr && ( - - {commonTexts.common.veiligheidsregio_label}{' '} - - {vr.name} - - - )} diff --git a/packages/cms/src/lokalize/key-mutations.csv b/packages/cms/src/lokalize/key-mutations.csv index 9c9b875303..046dcae8d5 100644 --- a/packages/cms/src/lokalize/key-mutations.csv +++ b/packages/cms/src/lokalize/key-mutations.csv @@ -1,4 +1,5 @@ timestamp,action,key,document_id,move_to +2023-03-21T10:10:15.918Z,delete,common.common.veiligheidsregio_label,jF33EuwumlGuwav2FD3gOS,__ 2023-03-21T13:32:36.900Z,add,pages.vaccinations_page.gm.bronnen.rivm.download,qAiz52vTEAxO2GlVGsZghw,__ 2023-03-21T13:32:37.948Z,add,pages.vaccinations_page.gm.bronnen.rivm.href,0l2RiEJzGzK1fkzwXwH0RT,__ 2023-03-21T13:32:39.016Z,add,pages.vaccinations_page.gm.bronnen.rivm.text,rjdXTk1G5FCmwrjr0m0WX6,__