import React, { Component } from 'react' import { Trans, translate } from 'react-i18next' import { connect } from 'react-redux' import { withRouter } from 'react-router' import './ProgressTip.css' import { nextStepsSelector } from 'Selectors/analyseSelectors' import withColours from './withColours' @withRouter @translate() @withColours @connect(state => ({ nextSteps: nextStepsSelector(state) })) export default class ProgressTip extends Component { render() { let { nextSteps, colours: { textColourOnWhite } } = this.props, nbQuestions = nextSteps.length if (nbQuestions === 0) return null return (
{nbQuestions === 1 ? (