INNER CODE UNIT · JavaScript
mapStateToProps
jippi/hashi-ui · frontend/src/components/app.js:175
function mapStateToProps({ appError, errorNotification, successNotification, appDrawer }) {
return { appError, errorNotification, successNotification, appDrawer }
}
App.defaultProps = {
successNotification: undefined,
errorNotification: undefined,
appDrawer: false
}
App.propTypes = {
children: PropTypes.object.isRequired,
appDrawer: PropTypes.bool.isRequired,
uncaughtException: PropTypes.object,
successNotification: PropTypes.object,
errorNotification: PropTypes.object,
appError: PropTypes.object,
route: PropTypes.object.isRequired,