[ABANDONED] React/Redux front end for the Flexor social network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
666 B

import { connect } from 'react-redux'
import { fetchSelf, setChecked } from 'src/actions/authentication'
import { getFetching } from 'src/selectors'
import { getCollapsed } from 'src/selectors/menu'
import { AppState, AppThunkDispatch } from 'src/types'
import App from './app'
const mapStateToProps = (state: AppState) => ({
collapsed: getCollapsed(state),
fetching: getFetching(state),
})
const mapDispatchToProps = (dispatch: AppThunkDispatch) => ({
fetchSelf: () => {
dispatch(fetchSelf())
},
setChecked: () => {
dispatch(setChecked())
}
})
export default connect(
mapStateToProps,
mapDispatchToProps
)(App)