[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.
 
 

22 lines
529 B

import { connect } from 'react-redux'
import { fetchGroups } from 'src/actions/directory'
import { getGroups } from 'src/selectors/directory'
import { AppState, AppThunkDispatch } from 'src/types'
import Directory from './directory'
const mapStateToProps = (state: AppState) => ({
groups: getGroups(state),
})
const mapDispatchToProps = (dispatch: AppThunkDispatch) => ({
fetchGroups: () => {
dispatch(fetchGroups())
},
})
export default connect(
mapStateToProps,
mapDispatchToProps
)(Directory)