Skip to content

Commit 918bcde

Browse files
authored
Merge pull request #733 from IQSS/731-dataset-metadata---logo-url-display
Dataset Metadata - logo url display
2 parents 8d43561 + 45bd3bb commit 918bcde

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.metadata-logo {
2+
max-width: 180px;
3+
max-height: 40px;
4+
}
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
import ReactMarkdown from 'react-markdown'
2+
import styles from './MarkdownComponent.module.scss'
3+
24
interface Props {
35
markdown: string
46
}
7+
58
export function MarkdownComponent({ markdown }: Props) {
6-
return <ReactMarkdown>{markdown}</ReactMarkdown>
9+
return (
10+
<ReactMarkdown
11+
components={{
12+
img: (props) => <img {...props} className={styles['metadata-logo']} />
13+
}}>
14+
{markdown}
15+
</ReactMarkdown>
16+
)
717
}

0 commit comments

Comments
 (0)