diff --git a/source/components/PeriodSwitch.js b/source/components/PeriodSwitch.js index 2838c0dd6..ccd7b4a8d 100644 --- a/source/components/PeriodSwitch.js +++ b/source/components/PeriodSwitch.js @@ -1,29 +1,36 @@ -import withColours from 'Components/utils/withColours' -import React, { Component } from 'react' -import { translate } from 'react-i18next' +import React from 'react' +import { Trans, translate } from 'react-i18next' import { Field } from 'redux-form' import './PeriodSwitch.css' import { reduxForm } from 'redux-form' +import { compose } from 'ramda' -export default reduxForm({ - form: 'conversation', - destroyOnUnmount: false, - initialValues: { période: 'mois' } -})(function PeriodSwitch() { +export default compose( + reduxForm({ + form: 'conversation', + destroyOnUnmount: false, + initialValues: { période: 'mois' } + }), + translate() +)(function PeriodSwitch() { return (