Skip to content

Commit

Permalink
Fix ny melding på mobil
Browse files Browse the repository at this point in the history
  • Loading branch information
tu55eladd committed Sep 12, 2024
1 parent e89b399 commit ba13ae3
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/view/AppBody.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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';
Expand Down Expand Up @@ -41,17 +40,12 @@ const AppBody = () => {
const oppfolgingData = dataOrUndefined(oppfolgingContext);

useLogBruker(brukerdata, oppfolgingData);
const erDialogRoute = useMatches().some((match) => match.id === RouteIds.Dialog);

return (
<>
<DialogOversikt />
<WaitForAllData />
<div
className={classNames('flex md:flex-1 flex-col', {
'flex-1': erDialogRoute // Når dialoger vises skal boks med meldinger fylle mest mulig
})}
>
<div className={classNames('flex flex-1 flex-col')}>
<StatusAdvarsel />
<DialogHeaderFeil />
<Outlet />
Expand Down

0 comments on commit ba13ae3

Please sign in to comment.