Skip to content

Commit

Permalink
debugger med
Browse files Browse the repository at this point in the history
  • Loading branch information
d142796 committed Jan 16, 2025
1 parent faae281 commit c69e463
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 73 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { RouterProvider } from 'react-router-dom';
import router from './Router';

function App() {
return <h1>Hei Verden fra react!</h1>;
return <RouterProvider router={router} />;
}

export default App;
73 changes: 1 addition & 72 deletions src/Router/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,7 @@ const router = createBrowserRouter(
[
{
path: Path.OVERSIKT,
element: (
<ErrorBoundary>
<AdvarselBannerTestversjon />
<VarselOmNedetid />
<Outlet />
</ErrorBoundary>
),
element: <h1>OVERSIKT</h1>,
children: [
{
path: '/*',
Expand All @@ -56,71 +50,6 @@ const router = createBrowserRouter(
path: Path.INFORMASJONSSIDE,
element: <Informasjonsside />,
},
{
path: Path.OVERSIKT,
element: (
<FeilVarselProvider>
<InnloggingBoundary>
<FeatureToggleProvider>
<RedirectEtterLogin>
<AlleredeOpprettetAvtaleProvider>
<NotifikasjonWidgetProvider>
<Outlet />
</NotifikasjonWidgetProvider>
</AlleredeOpprettetAvtaleProvider>
</RedirectEtterLogin>
</FeatureToggleProvider>
</InnloggingBoundary>
</FeilVarselProvider>
),
children: [
{
path: Path.OVERSIKT,
element: <Oversikt />,
},
{
path: Path.OPPRETT_AVTALE,
element: <OpprettAvtaleVeileder />,
},
{
path: Path.OPPRETT_AVTALE_ARBEIDSGIVER,
element: <OpprettAvtaleArbeidsgiver />,
},
{
path: Path.AVTALE,
element: (
<AvtaleProvider>
<AvtaleFetcher>
<Outlet />
</AvtaleFetcher>
</AvtaleProvider>
),
errorElement: <AvtaleRouteError />,
children: [
{
path: Path.AVTALE,
element: <AvtaleSide />,
},
{
path: Path.AVTALE_STEG,
element: <AvtaleSide />,
},
{
path: Path.AVTALE_BESLUTTER,
element: <BeslutterSide />,
},
{
path: Path.AVTALE_BESLUTTER_TILSKUDDSPERIODE,
element: <BeslutterSide />,
},
{
path: Path.AVTALE_SLETT,
element: <Slettemerk />,
},
],
},
],
},
],
},
],
Expand Down

0 comments on commit c69e463

Please sign in to comment.