From c95aa4938f7ec6af66aaeebd7a5f2f7c5d8f37f0 Mon Sep 17 00:00:00 2001 From: Mael Date: Fri, 16 Nov 2018 14:13:18 +0000 Subject: [PATCH] =?UTF-8?q?:alien:=20Choix=20de=20p=C3=A9riode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/PeriodSwitch.js | 27 +++++++++++++++++---------- source/locales/en.yaml | 3 +++ 2 files changed, 20 insertions(+), 10 deletions(-) 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 (
<>
diff --git a/source/locales/en.yaml b/source/locales/en.yaml index 56a51bc02..4ce90e901 100644 --- a/source/locales/en.yaml +++ b/source/locales/en.yaml @@ -584,3 +584,6 @@ Pas de régime de micro-entreprise: No microenterprise scheme Précédent: Previous Choisir plus tard: Choose later + +Mois: Month +Année: Year