Skip to content

Commit

Permalink
Fjern kode relatert til "Mine IA-tjenester"
Browse files Browse the repository at this point in the history
  • Loading branch information
klechr committed Oct 29, 2024
1 parent 84e022a commit 9499340
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 308 deletions.
5 changes: 0 additions & 5 deletions client/.storybook/mswHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
iaSakHistorikkPath,
innloggetAnsattPath,
leveransePath,
mineIATjenesterPath,
modulerPath,
næringPath,
publiseringsinfoPath,
Expand All @@ -26,7 +25,6 @@ import {
leveranserPerIATjeneste,
moduler,
} from "../src/Pages/Virksomhet/mocks/leveranseMock";
import { mineIATjenesterMock } from "../src/Pages/IATjenesteoversikt/mineIATjenesterMock";

export const mswHandlers = [
http.get(`${innloggetAnsattPath}`, () => {
Expand Down Expand Up @@ -55,9 +53,6 @@ export const mswHandlers = [
http.get(`${leveransePath}/:orgnummer/:saksnummer`, () => {
return HttpResponse.json(leveranserPerIATjeneste);
}),
http.get(`${mineIATjenesterPath}`, () => {
return HttpResponse.json(mineIATjenesterMock);
}),
http.get(tjenesterPath, () => {
return HttpResponse.json(iaTjenester);
}),
Expand Down
5 changes: 0 additions & 5 deletions client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { Statusoversiktside } from "./Pages/Statusoversikt/Statusoversiktside";
import { BodyShort, Link, Loader } from "@navikt/ds-react";
import { redirectUrl } from "./components/Banner/SesjonBanner";
import { setTilgangsnivå } from "./util/amplitude-klient";
import { IATjenesteoversiktside } from "./Pages/IATjenesteoversikt/IATjenesteoversiktside";
import { MineSakerside } from "./Pages/MineSaker/MineSakerside";
import { Samarbeidsside } from "./Pages/Virksomhet/Samarbeid/Samarbeidsside";

Expand Down Expand Up @@ -106,10 +105,6 @@ const AppContent = () => {
}
element={<Samarbeidsside />}
/>
<Route
path={"/iatjenesteoversikt"}
element={<IATjenesteoversiktside />}
/>
<Route path={"/minesaker"} element={<MineSakerside />} />
</Routes>
</AppRamme>
Expand Down
85 changes: 0 additions & 85 deletions client/src/Pages/IATjenesteoversikt/IATjenestekort.tsx

This file was deleted.

This file was deleted.

125 changes: 0 additions & 125 deletions client/src/Pages/IATjenesteoversikt/IATjenesteoversiktside.tsx

This file was deleted.

40 changes: 0 additions & 40 deletions client/src/Pages/IATjenesteoversikt/mineIATjenesterMock.ts

This file was deleted.

1 change: 0 additions & 1 deletion client/src/api/lydia-api/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const næringPath = "naring";
export const bransjePath = "bransje";
export const publiseringsinfoPath = "publiseringsinfo";
export const leveransePath = `${iaSakPath}/leveranse`;
export const mineIATjenesterPath = `${basePath}/iatjenesteoversikt/mine-iatjenester`;
export const tjenesterPath = `${leveransePath}/tjenester`;
export const modulerPath = `${leveransePath}/moduler`;
export const statusoversiktPath = `${basePath}/statusoversikt`;
Expand Down
11 changes: 1 addition & 10 deletions client/src/api/lydia-api/sok.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
getStatusoversiktUrl,
getSykefraværsstatistikkAntallTreffUrl,
mineIATjenesterPath,
} from "./paths";
import { getSykefraværsstatistikkUrl } from "./paths";
import {
Expand All @@ -14,10 +13,6 @@ import { FiltervisningState } from "../../Pages/Prioritering/Filter/filtervisnin
import { useSwrTemplate } from "./networkRequests";
import { filterverdierPath } from "./paths";
import { z } from "zod";
import {
MineIATjenester,
mineIATjenesterSchema,
} from "../../domenetyper/leveranse";

export const useFilterverdier = () =>
useSwrTemplate<Filterverdier>(filterverdierPath, filterverdierSchema);
Expand Down Expand Up @@ -53,11 +48,7 @@ export function useHentAntallTreff({
const antallTreffUrl = getSykefraværsstatistikkAntallTreffUrl(filterstate);
return useSwrTemplate(initierSøk ? antallTreffUrl : null, z.number());
}
export const useMineIATjenester = () =>
useSwrTemplate<MineIATjenester[]>(
mineIATjenesterPath,
mineIATjenesterSchema.array(),
);

export const appendIfNotDefaultValue = <T>(
key: string,
value: T | undefined,
Expand Down
11 changes: 0 additions & 11 deletions client/src/domenetyper/leveranse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,6 @@ export const leveranseSchema = z.object({

export type Leveranse = z.infer<typeof leveranseSchema>;

export const mineIATjenesterSchema = z.object({
orgnr: z.string(),
virksomhetsnavn: z.string(),
iaTjeneste: iaTjenesteSchema,
modul: modulSchema,
tentativFrist: datoSchema,
status: LeveranseStatusEnum,
});

export type MineIATjenester = z.infer<typeof mineIATjenesterSchema>;

export const leveranserPerIATjenesteSchema = z.object({
iaTjeneste: iaTjenesteSchema,
leveranser: z.array(leveranseSchema),
Expand Down
1 change: 0 additions & 1 deletion client/src/util/useTittel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export const statiskeSidetitler = {
prioriteringsside: lagSidetittel("søk"),
virksomhetsside: lagSidetittel("virksomhet"),
statusoversiktside: lagSidetittel("statusoversikt"),
iaTjenesteoversikt: lagSidetittel("IA-tjenester"),
};

function lagSidetittel(tittel: string) {
Expand Down

0 comments on commit 9499340

Please sign in to comment.