fix(widget-list): add missing translations in widget list top bar (#5471) (#5679)

This commit is contained in:
Josian Godard
2021-08-04 13:56:38 +02:00
committed by GitHub
parent d15a0220ad
commit db560cc082
6 changed files with 26 additions and 14 deletions

View File

@ -38,6 +38,7 @@ export default class ObjectControl extends React.Component {
clearFieldErrors: PropTypes.func.isRequired,
fieldsErrors: ImmutablePropTypes.map.isRequired,
hasError: PropTypes.bool,
t: PropTypes.func.isRequired,
};
static defaultProps = {
@ -135,7 +136,7 @@ export default class ObjectControl extends React.Component {
};
render() {
const { field, forID, classNameWrapper, forList, hasError } = this.props;
const { field, forID, classNameWrapper, forList, hasError, t } = this.props;
const collapsed = forList ? this.props.collapsed : this.state.collapsed;
const multiFields = field.get('fields');
const singleField = field.get('field');
@ -168,6 +169,7 @@ export default class ObjectControl extends React.Component {
collapsed={collapsed}
onCollapseToggle={this.handleCollapseToggle}
heading={collapsed && this.objectLabel()}
t={t}
/>
)}
<div