Skip to content

Commit

Permalink
[KAIZEN-0] fjern komponenter som er ikke i bruk
Browse files Browse the repository at this point in the history
  • Loading branch information
abrhanav committed Nov 13, 2024
1 parent 713021e commit 9a84661
Show file tree
Hide file tree
Showing 41 changed files with 7 additions and 1,052 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"start:dev": "VITE_MOCK_ENABLED=false vite",
"build": "vite build",
"test": "vitest",
"lint": "eslint . && prettier --check src/**/*.{ts,js,tsx}",
"lint": "eslint . --fix && prettier --check src/**/*.{ts,js,tsx}",
"lint-staged": "lint-staged",
"format": "prettier --write src/**/*.{ts,js,tsx}",
"generate": "openapi-typescript https://modiapersonoversikt-api.intern.dev.nav.no/modiapersonoversikt-api/v3/api-docs -o src/generated/modiapersonoversikt-api.d.ts",
Expand Down
15 changes: 0 additions & 15 deletions src/app/brukerprofil/BrukeprofilSide.test.tsx

This file was deleted.

32 changes: 0 additions & 32 deletions src/app/brukerprofil/BrukerprofilSide.tsx

This file was deleted.

71 changes: 0 additions & 71 deletions src/app/brukerprofil/__snapshots__/BrukeprofilSide.test.tsx.snap

This file was deleted.

3 changes: 0 additions & 3 deletions src/app/innstillinger/modal/InstillingerModalFormLabels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ const Label = styled.span`
.popover {
max-width: 30rem;
}
.hjelpetekst__apneknapp {
margin-left: 0.5rem;
}
`;

export const OppgaveDestinasjonLabel = (
Expand Down
11 changes: 0 additions & 11 deletions src/app/internarbeidsflatedecorator/decoratorprops.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
import { Enhet } from '../../rest/resources/saksbehandlersEnheterResource';

export const RESET_VALUE = '\u0000';

interface Markup {
etterSokefelt?: string;
}

export enum EnhetDisplay {
ENHET = 'ENHET',
ENHET_VALG = 'ENHET_VALG'
}

export enum FnrDisplay {
SOKEFELT = 'SOKEFELT'
}

type KeyDescriptionObject = {
char: string;
altKey?: boolean;
Expand Down
3 changes: 0 additions & 3 deletions src/app/personside/dialogpanel/RollerUtils.tsx

This file was deleted.

46 changes: 0 additions & 46 deletions src/app/personside/dialogpanel/fortsettDialog/BrukerKanSvare.tsx

This file was deleted.

21 changes: 1 addition & 20 deletions src/app/personside/dialogpanel/nyFellesStyling.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styled from 'styled-components';
import { pxToRem, theme } from '../../../styles/personOversiktTheme';
import { theme } from '../../../styles/personOversiktTheme';
import { AlertStripeFeil, AlertStripeInfo, AlertStripeSuksess } from 'nav-frontend-alertstriper';
import * as React from 'react';
import KnappBase from 'nav-frontend-knapper';
Expand Down Expand Up @@ -108,22 +108,3 @@ export function DialogpanelKvittering(props: {
</ErrorBoundary>
);
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const VelgDialogtypeStyle = styled.div`
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
> * {
margin-top: 0.3rem;
}
> *:not(:last-child) {
margin-right: 1rem;
}
`;

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const KategoriSkille = styled.div`
background-color: ${theme.color.kategori};
padding: 0.2rem ${pxToRem(15)};
`;
3 changes: 0 additions & 3 deletions src/app/personside/dialogpanel/sendMelding/FeilMeldinger.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ export enum Locale {
ur = 'ur'
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const LocaleValues: Array<Locale> = Object.keys(Locale) as Array<Locale>;

export const localeString: { [key in Locale]: string } = {
nb_NO: 'Norsk (Bokmål)',
nn_NO: 'Norsk (Nynorsk)',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function SykefraversoppfolgingTabell(props: { syfoPunkter: SyfoPunkt[] }) {
const sortertPaDato = props.syfoPunkter.sort(datoSynkende((syfoPunkt) => syfoPunkt.dato));

const tableHeaders = ['Innen', 'Hendelse', 'Status'];
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const tableRows = sortertPaDato.map((syfopunkt, index) => [

const tableRows = sortertPaDato.map((syfopunkt) => [
formatterDato(syfopunkt.dato),
syfopunkt.syfoHendelse,
syfopunkt.status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,65 +15,3 @@ function KontoEndringsTekst({ sistEndret }: Props) {
return <EtikettGraa>Endret {formatertdato} </EtikettGraa>;
}
export default KontoEndringsTekst;

const FOLKEREGISTERET = 'SKD';

// eslint-disable-next-line @typescript-eslint/no-unused-vars
function endretAvTekst(rawString: string): string {
if (endretAvBruker(rawString) || endretIPSelv(rawString)) {
return 'av bruker';
} else if (
endretIFagsystem(rawString) ||
endretIPesys(rawString) ||
endretIArena(rawString) ||
endretAvKonvertItSystem(rawString)
) {
return 'av NAV';
} else if (rawString.match(`AAA2101, ${FOLKEREGISTERET}`)) {
return 'av Skatteetaten';
} else if (endretIFolkeregisteret(rawString)) {
return 'i Folkeregisteret';
} else {
return rawString;
}
}

function endretIFolkeregisteret(rawString: string) {
return (
rawString.match(FOLKEREGISTERET) ||
rawString.toLowerCase() === 'folkeregisteret' ||
rawString.toLowerCase() === 'freg'
);
}

function endretIFagsystem(rawString: string) {
return rawString && (endretAvNyTypeIdent(rawString) || endretAvGammelTypeIdent(rawString));
}

function endretAvNyTypeIdent(rawString: string) {
return rawString.toUpperCase().match('[A-Z][0-9]{6}');
}

function endretAvGammelTypeIdent(rawString: string) {
return rawString.toUpperCase().match('[A-Z]{3}[0-9]{4}, [A-Z]{2}[0-9]{2}');
}

function endretIPSelv(rawString: string) {
return rawString.match('Srvpsel');
}

function endretIArena(rawString: string) {
return rawString.match(/arena/i);
}

function endretAvKonvertItSystem(rawString: string) {
return rawString.match(/konvert, IT[0-9]{2}/i);
}

function endretIPesys(rawString: string) {
return rawString.match('srvPensjon');
}

function endretAvBruker(rawString: string) {
return rawString.match('[0-9]{7}');
}

This file was deleted.

Loading

0 comments on commit 9a84661

Please sign in to comment.