import PropTypes from 'prop-types'; import React, { Component } from 'react'; import styles from './StepsBar.scss'; export default class StepsBar extends Component { static propTypes = { color : PropTypes.oneOf(['purple', 'blue', 'pink', 'green']), totalSteps : PropTypes.number, currentStep : PropTypes.number, canContinue : PropTypes.bool, continueText: PropTypes.string, cantContinueText: PropTypes.string, onClickHandler: PropTypes.func }; handleClick() { const {canContinue} = this.props; if (canContinue && this.props.onClickHandler) { this.props.onClickHandler(); } } renderDots = function(totalSteps, currentStep) { let dots = []; for (let i = 0; i < totalSteps; i++) { dots.push(