Skip to content

Commit

Permalink
Flytter decorator-utils tilbake...
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-nom committed Jul 19, 2024
1 parent 9ef6f8f commit 3850d06
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion server/src/server-setup/server-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
addDecoratorUpdateListener,
getDecoratorVersionId,
} from '@navikt/nav-dekoratoren-moduler/ssr';
import { decoratorEnvProps } from 'srcCommon/decorator/decorator-utils-serverside';
import { decoratorEnvProps } from 'srcCommon/decorator-utils-serverside';

// Set the no-cache header on json files from the incremental cache to ensure
// data requested during client side navigation is always validated if cached
Expand Down
2 changes: 1 addition & 1 deletion src/components/PageWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { onBreadcrumbClick, onLanguageSelect, setParams } from '@navikt/nav-deko
import { ContentProps } from 'types/content-props/_content-common';
import { hookAndInterceptInternalLink, prefetchOnMouseover } from 'utils/links';
import { hasWhiteHeader, hasWhitePage } from 'utils/appearance';
import { getDecoratorParams } from 'srcCommon/decorator/decorator-utils';
import { getDecoratorParams } from 'utils/decorator-utils';
import { getInternalRelativePath } from 'utils/urls';
import { store } from 'store/store';
import { fetchAndSetInnloggingsstatus } from 'utils/fetch/fetch-innloggingsstatus';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import Head from 'next/head';
import { ContentProps } from 'types/content-props/_content-common';
import { getDecoratorParams } from 'srcCommon/decorator/decorator-utils';
import { getDecoratorParams } from 'utils/decorator-utils';
import { isLegacyContentType } from 'utils/content-types';

type Props = {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { DocumentInitialProps } from 'next/dist/pages/_document';
import { DecoratorComponents } from '@navikt/nav-dekoratoren-moduler/ssr';
import { Language } from 'translations';
import { DocumentParameter } from 'components/_common/metatags/DocumentParameterMetatags';
import { getDecoratorComponents } from 'srcCommon/decorator/decorator-utils-serverside';
import { getDecoratorComponents } from 'srcCommon/decorator-utils-serverside';

type DocumentProps = {
language: Language;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { DecoratorParams } from '@navikt/nav-dekoratoren-moduler';
import { Language } from 'translations';
import { getContentLanguages } from 'utils/languages';
import { ContentProps, ContentType } from 'types/content-props/_content-common';
import { LanguageProps } from 'types/language';
import { stripXpPathPrefix } from 'utils/urls';
import { Audience, getAudience } from 'types/component-props/_mixins';
import { hasWhiteHeader } from 'utils/appearance';
import { stripXpPathPrefix } from './urls';
import { getContentLanguages } from './languages';
import { hasWhiteHeader } from './appearance';

const defaultLanguage: DecoratorParams['language'] = 'nb';

Expand Down
File renamed without changes.

0 comments on commit 3850d06

Please sign in to comment.