🐛 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 useSWR from "swr" | ||||
| 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.  | ||||
|  | @ -24,7 +22,7 @@ async function fetchAlleFeil() { | |||
|         }) | ||||
|         .then((data) => data.json()) | ||||
|         .then((feil) => { | ||||
|             return feil.map(jsonFeilmelding => new Feilmelding(jsonFeilmelding))                           | ||||
|             return feil.map((jsonFeilmelding: any) => new Feilmelding(jsonFeilmelding))                           | ||||
|         }) | ||||
|         .catch((error) => { | ||||
|             console.log(error) | ||||
|  |  | |||
|  | @ -1,5 +1,6 @@ | |||
| import "@navikt/ds-css"; | ||||
| import { ExpansionCard, Tag } from "@navikt/ds-react"; | ||||
| import { IFeilmelding } from "../interface"; | ||||
| 
 | ||||
| interface TagBarInterface { | ||||
|     haster: boolean | ||||
|  | @ -23,7 +24,7 @@ const FeilCard = (props: IFeilmelding) => { | |||
|                 <ExpansionCard.Description> | ||||
|                     {props.beskrivelse} | ||||
|                 </ExpansionCard.Description> | ||||
|                 {/* <TagBar haster={props.haster}/> */} | ||||
|                 <TagBar haster={true}/> | ||||
|             </ExpansionCard.Header> | ||||
|             <ExpansionCard.Content> | ||||
|                 Hællæ | ||||
|  |  | |||
		Reference in a new issue
	
	 Sindre Kjelsrud
						Sindre Kjelsrud