From ba13ae3499d42b165d86022c40f4cff67856c6a4 Mon Sep 17 00:00:00 2001 From: sigurdgroneng Date: Thu, 12 Sep 2024 15:21:23 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20ny=20melding=20p=C3=A5=20mobil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/view/AppBody.tsx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/view/AppBody.tsx b/src/view/AppBody.tsx index a30817d2..a7df09a8 100644 --- a/src/view/AppBody.tsx +++ b/src/view/AppBody.tsx @@ -1,5 +1,5 @@ import React, { ReactElement, Suspense, useEffect, useMemo } from 'react'; -import { Await, Outlet, useMatches } from 'react-router'; +import { Await, Outlet } from 'react-router'; import { v4 as uuidv4 } from 'uuid'; import loggEvent from '../felleskomponenter/logging'; @@ -8,9 +8,8 @@ import { useUserInfoContext } from './BrukerProvider'; import DialogOversikt from './dialogliste/DialogOversikt'; import { EventHandler } from './EventHandler'; import { useOppfolgingContext } from './OppfolgingProvider'; -import { dataOrUndefined, useErVeileder } from './Provider'; +import { dataOrUndefined } from './Provider'; import { useRootLoaderData } from '../routing/loaders'; -import { RouteIds } from '../routing/routes'; import classNames from 'classnames'; import StatusAdvarsel from './statusAdvarsel/StatusAdvarsel'; import DialogHeaderFeil from './dialog/DialogHeaderFeil'; @@ -41,17 +40,12 @@ const AppBody = () => { const oppfolgingData = dataOrUndefined(oppfolgingContext); useLogBruker(brukerdata, oppfolgingData); - const erDialogRoute = useMatches().some((match) => match.id === RouteIds.Dialog); return ( <> -
+