Skip to content

Commit

Permalink
Fikser feil i språkvelger for eksempel
Browse files Browse the repository at this point in the history
  • Loading branch information
terjeofnorway committed Jul 25, 2024
1 parent 398886e commit bfd0a1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
6 changes: 3 additions & 3 deletions example/src/components/SprakVelger.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Locale } from '@/types/locale';
import { Locale } from '../types/locale';

interface Props {
locales: Locale[];
Expand All @@ -16,9 +16,9 @@ export const SprakVelger = (props: Props) => {
<b>{locale}</b>
</span>
) : (
<span key={i} className="example__sprak" onClick={() => settValgtLocale(locale)}>
<button key={i} className="example__sprak" onClick={() => settValgtLocale(locale)}>
{locale}
</span>
</button>
)
)}
</div>
Expand Down

0 comments on commit bfd0a1d

Please sign in to comment.