From 503bbfcd1cd7bb868ea947cc916452e0b82875e7 Mon Sep 17 00:00:00 2001 From: Brian Han Date: Tue, 5 Sep 2017 09:30:09 -0500 Subject: [PATCH] fix(ProgressInidicator): remove null rendering (#207) --- components/ProgressIndicator.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/components/ProgressIndicator.js b/components/ProgressIndicator.js index 081ad9236a61..b6e221b03d1d 100644 --- a/components/ProgressIndicator.js +++ b/components/ProgressIndicator.js @@ -29,7 +29,9 @@ const ProgressStep = ({ ...props }) => { return (
  • - {description} + + {description} + {current ? { : null} {incomplete ? : null} -

    {label}

    +

    + {label} +

  • ); @@ -100,20 +104,16 @@ class ProgressIndicator extends Component { }); render() { - const { className, currentIndex, ...other } = this.props; + const { className, currentIndex, ...other } = this.props; // eslint-disable-line no-unused-vars const classes = classnames({ 'bx--progress': true, [className]: className }); - if (currentIndex) { - return ( - - ); - } - - return null; + return ( + + ); } }