🐛 Manglet nye props i cardcontainer
This commit is contained in:
parent
ed908be55e
commit
45f2815a7c
1 changed files with 4 additions and 0 deletions
|
@ -10,15 +10,19 @@ interface ICardsContainer {
|
|||
* @returns grid med feilmeldinger
|
||||
*/
|
||||
const CardsContainer = (props: ICardsContainer) => {
|
||||
{props.feilmeldinger.map((feilMelding) => console.log(feilMelding))}
|
||||
|
||||
return (
|
||||
<div className="grid grid-cols-2 gap-6">
|
||||
|
||||
{props.feilmeldinger.map((feilMelding) => (
|
||||
<FeilKort
|
||||
key={props.feilmeldinger.indexOf(feilMelding)}
|
||||
tittel={feilMelding.tittel}
|
||||
beskrivelse={feilMelding.beskrivelse}
|
||||
dato={new Date()}
|
||||
haster={feilMelding.haster}
|
||||
arbeidsstatus={feilMelding.arbeidsstatus}
|
||||
/>
|
||||
))
|
||||
}
|
||||
|
|
Reference in a new issue