Do not use the @translate on the FormDecorator

You must not decorate decorator with @translate(). Only final classes have to
be decorated.

for the same reason, the order of decorator declaration in final classes is
important and @translate must be in last position (juste before the class
declaration)
pull/188/head
Étienne Charignon 2018-04-02 15:48:04 +02:00 committed by Mael
parent 5e1dfb98c6
commit e70f0d0b10
1 changed files with 0 additions and 1 deletions

View File

@ -32,7 +32,6 @@ export var FormDecorator = formType => RenderField =>
dispatch(change('conversation', field, value))
})
)
@translate()
class extends Component {
static contextTypes = {
i18n: PropTypes.object.isRequired