diff --git a/packages/showcase/showcase-components/showcase-utils.js b/packages/showcase/showcase-components/showcase-utils.js index 33456774e..231a4e982 100644 --- a/packages/showcase/showcase-components/showcase-utils.js +++ b/packages/showcase/showcase-components/showcase-utils.js @@ -14,7 +14,7 @@ export function mapSection(section) { return (
-

{name}

+ {name &&

{name}

}
{exampleLink && ( diff --git a/packages/showcase/showcase-sections/plots-showcase.js b/packages/showcase/showcase-sections/plots-showcase.js index 2690ee842..27d9c7830 100644 --- a/packages/showcase/showcase-sections/plots-showcase.js +++ b/packages/showcase/showcase-sections/plots-showcase.js @@ -252,11 +252,11 @@ function PlotsShowcase(props) { return (

Plots

- {!forExample && ( -
- -
- )} + {!forExample && mapSection({ + component: ComplexChart, + componentName: 'ComplexChart', + sourceLink: `${REACTVIS_BASE_URL}/plot/complex-chart.js` + })}

Series Types

{PLOTS.map(mapSection)}