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) {