Skip to content

Commit

Permalink
f - wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldlin committed Nov 29, 2024
1 parent a2c007d commit 7ba1e4a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 25 deletions.
51 changes: 27 additions & 24 deletions src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {QueryClient, QueryClientProvider} from "@tanstack/react-query";
import {ReactQueryDevtools} from "@tanstack/react-query-devtools";
import {onLanguageSelect, setParams} from "@navikt/nav-dekoratoren-moduler";
import useDecoratorLogin from "./lib/hooks/auth/useDecoratorLogin.ts";
import {ValgtKategoriProvider} from "./KortKategorierContextProvider.tsx";

const queryClient = new QueryClient();

Expand Down Expand Up @@ -67,33 +68,35 @@ export default function App() {
v7_startTransition: true,
}}
>
<Routes>
<Route path={"skjema"}>
<Route path="kort/:behandlingsId">
<Route element={<SwitchSoknadType />}>
<Route path="1" element={<RedirectToStandard />} />
<Route path="2" element={<Behov />} />
<Route path="3" element={<ArbeidOgFamilie />} />
<Route path="4" element={<Inntekt />} />
<Route path="5" element={<Oppsummering />} />
<ValgtKategoriProvider>
<Routes>
<Route path={"skjema"}>
<Route path="kort/:behandlingsId">
<Route element={<SwitchSoknadType />}>
<Route path="1" element={<RedirectToStandard />} />
<Route path="2" element={<Behov />} />
<Route path="3" element={<ArbeidOgFamilie />} />
<Route path="4" element={<Inntekt />} />
<Route path="5" element={<Oppsummering />} />
</Route>
</Route>
</Route>
<Route path=":behandlingsId">
<Route index path="1" element={<Personopplysninger shortSpacing />} />
<Route element={<SwitchSoknadType />}>
<Route path="2" element={<Begrunnelse />} />
<Route path="3" element={<ArbeidOgUtdanning />} />
<Route path="4" element={<Familie />} />
<Route path="5" element={<Bosituasjon />} />
<Route path="6" element={<InntektFormue />} />
<Route path="7" element={<UtgifterGjeld />} />
<Route path="8" element={<OkonomiskeOpplysningerView />} />
<Route path="9" element={<Oppsummering />} />
<Route path=":behandlingsId">
<Route index path="1" element={<Personopplysninger shortSpacing />} />
<Route element={<SwitchSoknadType />}>
<Route path="2" element={<Begrunnelse />} />
<Route path="3" element={<ArbeidOgUtdanning />} />
<Route path="4" element={<Familie />} />
<Route path="5" element={<Bosituasjon />} />
<Route path="6" element={<InntektFormue />} />
<Route path="7" element={<UtgifterGjeld />} />
<Route path="8" element={<OkonomiskeOpplysningerView />} />
<Route path="9" element={<Oppsummering />} />
</Route>
</Route>
<Route path="*" element={<IkkeFunnet />} />
</Route>
<Route path="*" element={<IkkeFunnet />} />
</Route>
</Routes>
</Routes>
</ValgtKategoriProvider>
</BrowserRouter>
<div aria-hidden={"true"}>
<ReactQueryDevtools initialIsOpen={false} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const ForhandsvisningVedleggModal = ({
setSelectedCategory(event.target.value);
}}
>
<option value="">Velg kategori</option>
<option value="">{t("begrunnelse.kategorier.kortKategorier.kategoriValg")}</option>
<option value="kort|barnebidrag">
{t("begrunnelse.kategorier.kortKategorier.barnebidrag")}
</option>
Expand Down

0 comments on commit 7ba1e4a

Please sign in to comment.