fixed progress bar component rendering bug

This commit is contained in:
bill bittner 2018-01-24 10:26:35 -08:00
parent 8228e5bd12
commit d0c6f75bff
3 changed files with 3 additions and 4 deletions

View file

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
function ActiveStatusBar () { const ActiveStatusBar = () => {
return <span className="progress-bar progress-bar--active">| </span>; return <span className="progress-bar progress-bar--active">| </span>;
} }

View file

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
function InactiveStatusBar () { const InactiveStatusBar = () => {
return <span className="progress-bar progress-bar--inactive">| </span>; return <span className="progress-bar progress-bar--inactive">| </span>;
} }
export default InactiveStatusBar(); export default InactiveStatusBar;

View file

@ -7,7 +7,6 @@ class ProgressBar extends React.Component {
constructor (props) { constructor (props) {
super(props); super(props);
this.state = { this.state = {
size : 12,
bars : [], bars : [],
index : 0, index : 0,
incrementer: 1, incrementer: 1,