🚧 Fetching av feilmeldinger fra DB til frontend i form av Promises
WIP: klarer ikke konvertere Promise<any> til Feilmelding[] Co-authored-by: Sindre Kjelsrud <sindre.kjelsrud@nav.no>
This commit is contained in:
parent
eb470e3c9e
commit
02f999c56b
7 changed files with 97 additions and 66 deletions
|
|
@ -15,7 +15,7 @@ const TagBar = (props: TagBarInterface) => {
|
|||
)
|
||||
}
|
||||
|
||||
const FeilCard = (props: Feilmelding) => {
|
||||
const FeilCard = (props: IFeilmelding) => {
|
||||
return (
|
||||
<ExpansionCard aria-label="tekst">
|
||||
<ExpansionCard.Header>
|
||||
|
|
@ -23,7 +23,7 @@ const FeilCard = (props: Feilmelding) => {
|
|||
<ExpansionCard.Description>
|
||||
{props.beskrivelse}
|
||||
</ExpansionCard.Description>
|
||||
<TagBar haster={props.haster}/>
|
||||
{/* <TagBar haster={props.haster}/> */}
|
||||
</ExpansionCard.Header>
|
||||
<ExpansionCard.Content>
|
||||
Hællæ
|
||||
|
|
|
|||
Reference in a new issue