From 21ec0476fdcf560d69d8742c378ac113eea48f7e Mon Sep 17 00:00:00 2001
From: VWSCoronaDashboard18
<93984341+VWSCoronaDashboard18@users.noreply.github.com>
Date: Tue, 21 Mar 2023 11:01:12 +0100
Subject: [PATCH 1/2] chore: remove VR references from GM sidebar
---
packages/app/src/domain/layout/gm-layout.tsx | 16 +---------------
1 file changed, 1 insertion(+), 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) {