Skip to content

Commit

Permalink
Bruker beskyttetSide fra fellesbibliotek
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbjoern committed Sep 5, 2023
1 parent 9df87b5 commit 8ffbd9b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 53 deletions.
46 changes: 0 additions & 46 deletions auth/beskyttetSide.ts

This file was deleted.

3 changes: 1 addition & 2 deletions pages/[step].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import Student from 'components/pageComponents/standard/Student/Student';
import { AndreUtbetalinger } from 'components/pageComponents/standard/AndreUtbetalinger/AndreUtbetalinger';
import Vedlegg from 'components/pageComponents/standard/Vedlegg/Vedlegg';
import Oppsummering from 'components/pageComponents/standard/Oppsummering/Oppsummering';
import { beskyttetSide } from 'auth/beskyttetSide';
import { GetServerSidePropsResult, NextPageContext } from 'next';
import { getAccessToken } from 'auth/accessToken';
import { getSøker } from './api/oppslag/soeker';
Expand All @@ -56,7 +55,7 @@ import { TimeoutBox } from 'components/TimeoutBox/TimeoutBox';
import { Steg0 } from 'components/pageComponents/standard/Steg0/Steg0';
import * as classes from './step.module.css';
import { FormattedMessage, useIntl } from 'react-intl';
import { logger } from '@navikt/aap-felles-utils';
import { beskyttetSide, logger } from '@navikt/aap-felles-utils';

interface PageProps {
søker: SokerOppslagState;
Expand Down
3 changes: 1 addition & 2 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React, { useEffect, useRef, useState } from 'react';
import { Soker, SøkerView } from 'context/sokerOppslagContext';
import { useRouter } from 'next/router';
import { GetServerSidePropsResult, NextPageContext } from 'next/types';
import { beskyttetSide } from 'auth/beskyttetSide';
import { getAccessToken } from 'auth/accessToken';
import { fetchPOST } from 'api/fetch';
import { lesBucket } from 'pages/api/buckets/les';
Expand All @@ -15,7 +14,7 @@ import metrics from 'utils/metrics';
import { scrollRefIntoView } from 'utils/dom';
import { getSøkerUtenBarn } from 'pages/api/oppslag/soekerUtenBarn';
import { TimeoutBox } from 'components/TimeoutBox/TimeoutBox';
import { logger } from '@navikt/aap-felles-utils';
import { beskyttetSide, logger } from '@navikt/aap-felles-utils';
import { getFulltNavn } from '../lib/søker';

interface PageProps {
Expand Down
3 changes: 1 addition & 2 deletions pages/kvittering.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ import { SokerOppslagState, SøkerView } from 'context/sokerOppslagContext';
import { SoknadContextProviderStandard } from 'context/soknadContextStandard';
import Kvittering from 'components/pageComponents/standard/Kvittering/Kvittering';
import * as classes from 'components/pageComponents/standard/standard.module.css';
import { beskyttetSide } from 'auth/beskyttetSide';
import { GetServerSidePropsResult, NextPageContext } from 'next';
import { getAccessToken } from 'auth/accessToken';
import { getSøknader, SøknadApiType } from 'pages/api/oppslag/soeknader';
import { getSøker } from 'pages/api/oppslag/soeker';
import { logger } from '@navikt/aap-felles-utils';
import { beskyttetSide, logger } from '@navikt/aap-felles-utils';
import metrics from 'utils/metrics';
import { FormattedMessage } from 'react-intl';

Expand Down
2 changes: 1 addition & 1 deletion pages/vedlegg/[uuid].tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { beskyttetSide } from 'auth/beskyttetSide';
import { beskyttetSide } from '@navikt/aap-felles-utils';
import { GetServerSidePropsResult, NextPageContext } from 'next';
import { useRouter } from 'next/router';
import { useEffect, useState } from 'react';
Expand Down

0 comments on commit 8ffbd9b

Please sign in to comment.