alpinesmuseum-public/assets/js/components/ContribView/CVBodyContainer.js
2022-09-23 07:38:37 +05:30

15 lines
454 B
JavaScript

import { connect } from 'react-redux';
import { sendParticipation } from '../../redux/actions/participate';
import { toggleParticipated } from '../../redux/actions/ui';
import CVBody from './CVBody';
const mapStateToProps = state => {
return { pending: state.ui.pending, participated: state.ui.participated };
};
const CVBodyContainer = connect(
mapStateToProps,
{ sendParticipation, toggleParticipated }
)(CVBody);
export default CVBodyContainer;