Skip to content

Commit

Permalink
fix content
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed Feb 22, 2024
1 parent a81ee6e commit ecffa66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/pages/viewer/components/ModalContextProvider.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useCallback } from "react";
import { ModalContext } from "../contexts";
import { Modal } from "react-bulma-components";
import { Content, Modal } from "react-bulma-components";
import parse from 'html-react-parser';


Expand All @@ -20,7 +20,9 @@ export default function  ModalContextProvider({ children }) {
<Modal.Card.Title>{node && node.name}</Modal.Card.Title>
</Modal.Card.Header>
<Modal.Card.Body>
{node && parse(node.description)}
<Content>
{node && parse(node.description)}
</Content>
</Modal.Card.Body>
</Modal.Card>
</Modal>
Expand Down
4 changes: 1 addition & 3 deletions src/pages/viewer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ const TABS = {
label: 'Beskrivelse',
render: (map) => (
<Content px={2}>
<div>
{parse(map.data.description)}
</div>
{parse(map.data.description)}
</Content>
)
}
Expand Down

0 comments on commit ecffa66

Please sign in to comment.