🐛 Fikser buildproblemos
Co-authored-by: Markus A. R. Johansen <markus.aleksander.rakil.johansen@nav.no>
This commit is contained in:
parent
02f999c56b
commit
53b314aa6a
2 changed files with 4 additions and 5 deletions
|
@ -1,8 +1,6 @@
|
||||||
import { data } from "autoprefixer";
|
|
||||||
import FeilCard from "./FeilCard"
|
import FeilCard from "./FeilCard"
|
||||||
import useSWR from "swr"
|
|
||||||
import { backendURL } from "../const.ts"
|
import { backendURL } from "../const.ts"
|
||||||
import { Feilmelding, IFeilmelding } from "../interface.ts";
|
import { Feilmelding } from "../interface.ts";
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @returns Komponent for returnering av konteiner med alle feilinnmeldingene.
|
* @returns Komponent for returnering av konteiner med alle feilinnmeldingene.
|
||||||
|
@ -24,7 +22,7 @@ async function fetchAlleFeil() {
|
||||||
})
|
})
|
||||||
.then((data) => data.json())
|
.then((data) => data.json())
|
||||||
.then((feil) => {
|
.then((feil) => {
|
||||||
return feil.map(jsonFeilmelding => new Feilmelding(jsonFeilmelding))
|
return feil.map((jsonFeilmelding: any) => new Feilmelding(jsonFeilmelding))
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import "@navikt/ds-css";
|
import "@navikt/ds-css";
|
||||||
import { ExpansionCard, Tag } from "@navikt/ds-react";
|
import { ExpansionCard, Tag } from "@navikt/ds-react";
|
||||||
|
import { IFeilmelding } from "../interface";
|
||||||
|
|
||||||
interface TagBarInterface {
|
interface TagBarInterface {
|
||||||
haster: boolean
|
haster: boolean
|
||||||
|
@ -23,7 +24,7 @@ const FeilCard = (props: IFeilmelding) => {
|
||||||
<ExpansionCard.Description>
|
<ExpansionCard.Description>
|
||||||
{props.beskrivelse}
|
{props.beskrivelse}
|
||||||
</ExpansionCard.Description>
|
</ExpansionCard.Description>
|
||||||
{/* <TagBar haster={props.haster}/> */}
|
<TagBar haster={true}/>
|
||||||
</ExpansionCard.Header>
|
</ExpansionCard.Header>
|
||||||
<ExpansionCard.Content>
|
<ExpansionCard.Content>
|
||||||
Hællæ
|
Hællæ
|
||||||
|
|
Reference in a new issue