gab-social/app/javascript/gabsocial/components/loading_bar.js
mgabdev 5a55f89dbe Removed connect global import, added to files directly
• Removed:
- connect global import, added to files directly
2020-08-17 15:39:25 -05:00

10 lines
300 B
JavaScript

import React from 'react'
import { connect } from 'react-redux'
import LoadingBar from 'react-redux-loading-bar'
const mapStateToProps = (state, ownProps) => ({
loading: state.get('loadingBar')[ownProps.scope || 'default'],
})
export default connect(mapStateToProps)(LoadingBar.WrappedComponent)