From f47f7d11c1301104a7328c52d955da49adbc9afa Mon Sep 17 00:00:00 2001 From: bigbug Date: Thu, 15 Oct 2020 10:22:20 +0200 Subject: [PATCH] Made changes --- .../showcase/showcase-components/showcase-utils.js | 2 +- packages/showcase/showcase-sections/plots-showcase.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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)}