Skip to content

Commit

Permalink
UPDATE: to render markdown and updated example picture
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremiahUy committed Nov 8, 2024
1 parent fbf241b commit eb06356
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
11 changes: 8 additions & 3 deletions apps/frontend/src/pages/BehandlingensLivslopPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ import { useEtterlevelseDokumentasjon } from '../api/EtterlevelseDokumentasjonAp
import { getPvkDokumentByEtterlevelseDokumentId } from '../api/PvkDokumentApi'
import { CustomFileUpload } from '../components/behandlingensLivlop/CustomFileUpload'
import { TextAreaField } from '../components/common/Inputs'
import { Markdown } from '../components/common/Markdown'
import { ExternalLink } from '../components/common/RouteLink'
import { PageLayout } from '../components/scaffold/Page'
import { IBehandling, IBreadCrumbPath, IPvkDokument } from '../constants'
import behandlingensLivslop from '../resources/behandlingensLivslop.svg'
import behandlingensLivslop from '../resources/behandlingensLivslop.png'
import { user } from '../services/User'
import { env } from '../util/env'
import { dokumentasjonerBreadCrumbPath } from './util/BreadCrumbPath'
Expand Down Expand Up @@ -272,10 +273,14 @@ export const BehandlingensLivslopPage = () => {
</Heading>

{etterlevelseDokumentasjon.beskrivelse && (
<div className="mt-3">{etterlevelseDokumentasjon.beskrivelse}</div>
<div className="mt-3">
<Markdown source={etterlevelseDokumentasjon.beskrivelse} />
</div>
)}
{!etterlevelseDokumentasjon.beskrivelse && (
<div className="mt-3">Det er ikke skrevet en beskrivelse på etterlevelsen</div>
<BodyShort className="mt-3">
Det er ikke skrevet en beskrivelse på etterlevelsen
</BodyShort>
)}
</div>
)}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 0 additions & 10 deletions apps/frontend/src/resources/behandlingensLivslop.svg

This file was deleted.

0 comments on commit eb06356

Please sign in to comment.