gab-social/app/javascript/gabsocial/components/loading_bar.js

8 lines
236 B
JavaScript
Raw Normal View History

2020-02-28 15:20:47 +00:00
import LoadingBar from 'react-redux-loading-bar'
2019-07-02 08:10:25 +01:00
const mapStateToProps = (state, ownProps) => ({
loading: state.get('loadingBar')[ownProps.scope || 'default'],
2020-04-11 23:29:19 +01:00
})
2019-07-02 08:10:25 +01:00
2020-02-28 15:20:47 +00:00
export default connect(mapStateToProps)(LoadingBar.WrappedComponent)