diff --git a/src/components/panel/index.js b/src/components/panel/index.js index 8424814f1..ea8427e5d 100644 --- a/src/components/panel/index.js +++ b/src/components/panel/index.js @@ -6,13 +6,15 @@ import snakeCase from 'lodash/string/snakeCase'; import ButtonHelp from '../button-help'; const defaultProps = { - actionsPosition: 'top' + actionsPosition: 'top', + titleTranslated: true }; const propTypes = { actions: PropTypes.func, actionsPosition: PropTypes.oneOf(['both', 'bottom', 'top']).isRequired, title: PropTypes.string, + titleTranslated: PropTypes.bool, showHelp: PropTypes.bool, blockName: PropTypes.string }; @@ -36,7 +38,7 @@ class Panel extends Component { * @return {DOM} React DOM element */ render() { - const { actions, actionsPosition, children, title, showHelp, blockName, modalTitleId, ...otherProps } = this.props; + const { actions, actionsPosition, children, title, titleTranslated, showHelp, blockName, modalTitleId, ...otherProps } = this.props; const { spyId } = this.state; const shouldDisplayActionsTop = actions && ['both', 'top'].includes(actionsPosition); const shouldDisplayActionsBottom = actions && ['both', 'bottom'].includes(actionsPosition); @@ -50,12 +52,12 @@ class Panel extends Component {