Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
eriksson-daniel committed Dec 19, 2023
1 parent a591df2 commit 95e259d
Show file tree
Hide file tree
Showing 20 changed files with 39 additions and 960 deletions.
2 changes: 1 addition & 1 deletion frontend/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"editor.linkedEditing": true,
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"typescript.validate.enable": true,
"typescript.tsdk": "node_modules/typescript/lib",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/breadcrumbs/use-breadcrumbs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useLanguage } from '@app/language/use-language';
import { useTranslation } from '@app/language/use-translation';
import { currentPath } from '@app/routes/current-path';

export interface Breadcrumb {
interface Breadcrumb {
url: string;
title: string;
handleInApp?: boolean;
Expand Down
20 changes: 0 additions & 20 deletions frontend/src/components/text-loader/title-loader.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/src/hooks/use-innsendingsytelser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,3 @@ export const useInnsendingsytelseName = (innsendingsytelse: Innsendingsytelse):

return [data[innsendingsytelse] ?? innsendingsytelse, false];
};

export const useInnsendingsytelserNames = (innsendingsytelser: Innsendingsytelse[]): [string[], boolean] => {
const lang = useLanguage();
const { data, isLoading } = useGetInnsendingsytelserQuery(lang);

if (isLoading || typeof data === 'undefined') {
return [[], true];
}

const titles = innsendingsytelser.map((innsendingsytelse) => data[innsendingsytelse] ?? innsendingsytelse);

return [titles, isLoading];
};
39 changes: 0 additions & 39 deletions frontend/src/icons/document.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion frontend/src/innsendingsytelser/innsendingsytelser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export enum Innsendingsytelse {
FEIL = 'FEIL',
}

const INNSENDINGSYTELSER = Object.values(Innsendingsytelse);
export const INNSENDINGSYTELSER = Object.values(Innsendingsytelse);

export const ensureStringIsInnsendingsytelse = (value: string | null = null): Innsendingsytelse | null => {
if (value === null) {
Expand Down
Loading

0 comments on commit 95e259d

Please sign in to comment.