Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var translatedBtnBackText = this.props.translation && this.state.strings && this.state.selectedLanguage ? this.state.strings[this.state.selectedLanguage]['btnTextGoBack'] : 'Back';
return _react2.default.createElement(
_dialog.Dialog,
{
open: this.state.detailDialogOpen,
onClose: function onClose(evt) {
_this7.setState({ detailDialogOpen: false });
}
},
_react2.default.createElement(
_dialog.DialogTitle,
null,
this.renderDetailsTitle()
),
_react2.default.createElement(
_dialog.DialogContent,
null,
this.renderDetails()
),
_react2.default.createElement(
_dialog.DialogActions,
{ style: { display: 'flex', justifyContent: 'center' } },
_react2.default.createElement(
_dialog.DialogButton,
{ action: 'close' },
translatedBtnBackText
)
)
);
}
}, {