diff --git a/example/src/App.tsx b/example/src/App.tsx index 7576fdd..bd55ce4 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -11,14 +11,14 @@ import { Locale } from './types/locale'; import '@navikt/ds-css'; import { BodyLong } from '@navikt/ds-react'; +initLocalMock(); + const App = () => { const locales: Locale[] = ['nb', 'nn', 'en']; const host = window.location.host; const isDev = host.split(`.`)[1] === 'dev'; const miljo = (isDev ? 'DEV' : 'LOCAL') as Miljo; - initLocalMock(); - const printActivated = true; const printName = 'Ola Nordmann'; const printSSN = '12345678911'; diff --git a/example/src/components/SprakVelger.tsx b/example/src/components/SprakVelger.tsx index 49350f8..1390f57 100644 --- a/example/src/components/SprakVelger.tsx +++ b/example/src/components/SprakVelger.tsx @@ -1,4 +1,4 @@ -import { Locale } from '@/types/locale'; +import { Locale } from '../types/locale'; interface Props { locales: Locale[]; @@ -16,9 +16,9 @@ export const SprakVelger = (props: Props) => { {locale} ) : ( - settValgtLocale(locale)}> + ) )}