This commit is contained in:
parent
3a6dc1d24e
commit
6d58566779
|
|
@ -849,10 +849,18 @@ export default function VizTypeGallery(props: VizTypeGalleryProps) {
|
|||
grid-area: examples-header;
|
||||
`}
|
||||
>
|
||||
{!!selectedVizMetadata?.exampleGallery?.length && t('Examples')}
|
||||
{t('Examples')}
|
||||
</SectionTitle>
|
||||
<Examples>
|
||||
{(selectedVizMetadata?.exampleGallery || []).map(example => (
|
||||
{(selectedVizMetadata?.exampleGallery?.length
|
||||
? selectedVizMetadata.exampleGallery
|
||||
: [
|
||||
{
|
||||
url: selectedVizMetadata?.thumbnail,
|
||||
caption: selectedVizMetadata?.name,
|
||||
},
|
||||
]
|
||||
).map(example => (
|
||||
<img
|
||||
key={example.url}
|
||||
src={example.url}
|
||||
|
|
|
|||
Loading…
Reference in New Issue