Skip to content

Commit

Permalink
Update dekoratoren-moduler to 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
haakomol committed Jan 16, 2025
1 parent 81cb34c commit b13e37c
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 72 deletions.
144 changes: 76 additions & 68 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@navikt/ds-react": "^7.9.1",
"@navikt/ds-tailwind": "^7.9.1",
"@navikt/ds-tokens": "^7.5.3",
"@navikt/nav-dekoratoren-moduler": "^2.1.6",
"@navikt/nav-dekoratoren-moduler": "^3.1.3",
"@navikt/next-logger": "^1.35.0",
"@navikt/oasis": "^3.6.0",
"@tanstack/react-query": "^4.36.1",
Expand Down
6 changes: 3 additions & 3 deletions src/pages/_document.page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import Document, { DocumentContext, DocumentInitialProps, Head, Html, Main, NextScript } from 'next/document'
import { DecoratorComponents, fetchDecoratorReact } from '@navikt/nav-dekoratoren-moduler/ssr'
import { DecoratorComponentsReact, fetchDecoratorReact } from '@navikt/nav-dekoratoren-moduler/ssr'
import { Page } from '@navikt/ds-react'

import { browserEnv } from '@/constants/envs'

interface DocumentProps {
Decorator: DecoratorComponents
Decorator: DecoratorComponentsReact
}

function createDecoratorEnv(): 'dev' | 'prod' {
Expand Down Expand Up @@ -37,7 +37,7 @@ class MyDocument extends Document<DocumentProps> {
return (
<Html lang="no">
<Head>
<Decorator.Styles />
<Decorator.HeadAssets />
</Head>
<body>
<Page background="bg-subtle" contentBlockPadding="none" footer={<Decorator.Footer />}>
Expand Down

0 comments on commit b13e37c

Please sign in to comment.