Skip to content

Commit

Permalink
aktivitetsplan vises selvom du har warning
Browse files Browse the repository at this point in the history
  • Loading branch information
henriktheboss committed Jan 10, 2025
1 parent 208f895 commit 73c1a77
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
3 changes: 0 additions & 3 deletions src/BasePage.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import OppfolgingStatus from './moduler/oppfolging-status/OppfolgingStatus';
import { Outlet } from 'react-router-dom';

export const BasePage = () => {
return (
<OppfolgingStatus>
<Outlet />
</OppfolgingStatus>
);
};
3 changes: 3 additions & 0 deletions src/hovedside/Hovedside.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Verktoylinje from '../moduler/verktoylinje/Verktoylinje';
import { useRoutes } from '../routing/useRoutes';
import Aktivitetstavle from './tavle/Aktivitetstavle';
import { Loader } from '@navikt/ds-react';
import OppfolgingStatus from '../moduler/oppfolging-status/OppfolgingStatus';

const Hovedside = () => {
const navigate = useNavigate();
Expand All @@ -25,6 +26,8 @@ const Hovedside = () => {
return (
<main id="main" className="hovedside">
<div className="flex items-center flex-col w-full h-full">
<OppfolgingStatus>
</OppfolgingStatus>
<HovedsideFeilmelding />
<InformasjonsHenting />
<Varslinger />
Expand Down
7 changes: 2 additions & 5 deletions src/moduler/oppfolging-status/OppfolgingStatus.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import React, { ReactNode } from 'react';
import VidereSendBrukereEllerRenderChildren from './VidereSendBrukereEllerRenderChildren';

interface Props {
children: ReactNode;
}

const OppfolgingStatus = ({ children }: Props) => {
const OppfolgingStatus = () => {
return (
<div className="w-full">
<VidereSendBrukereEllerRenderChildren>{children}</VidereSendBrukereEllerRenderChildren>
<VidereSendBrukereEllerRenderChildren></VidereSendBrukereEllerRenderChildren>
</div>
);
};
Expand Down

0 comments on commit 73c1a77

Please sign in to comment.