diff --git a/source/components/GoToExplanations.js b/source/components/GoToExplanations.js index a6e86f7b9..5559fd36d 100644 --- a/source/components/GoToExplanations.js +++ b/source/components/GoToExplanations.js @@ -1,6 +1,7 @@ import React, { Component } from 'react' import { Trans, translate } from 'react-i18next' import { Element, scroller } from 'react-scroll' +import './conversation/conversation.css' import { SimpleButton } from './ui/Button' import withColours from './withColours' diff --git a/source/components/Overlay.js b/source/components/Overlay.js index 5fafed402..c11f263b8 100644 --- a/source/components/Overlay.js +++ b/source/components/Overlay.js @@ -1,6 +1,7 @@ import FocusTrap from 'focus-trap-react' import React, { Component } from 'react' import './Overlay.css' +import { SimpleButton } from './ui/Button' export default class Overlay extends Component { render() { @@ -20,13 +21,12 @@ export default class Overlay extends Component { e.stopPropagation() }}> {children} - + diff --git a/source/components/ProgressTip.js b/source/components/ProgressTip.js index adc7b7a26..0e77f4740 100644 --- a/source/components/ProgressTip.js +++ b/source/components/ProgressTip.js @@ -1,29 +1,21 @@ import React, { Component } from 'react' -import { Trans, translate } from 'react-i18next' +import { Trans } 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' +import './ProgressTip.css' -@withRouter -@translate() -@withColours @connect(state => ({ nextSteps: nextStepsSelector(state) })) export default class ProgressTip extends Component { render() { - let { - nextSteps, - colours: { textColourOnWhite } - } = this.props, + let { nextSteps } = this.props, nbQuestions = nextSteps.length if (nbQuestions === 0) return null return (
+
{nbQuestions === 1 ? (
-