alpinesmuseum-public/assets/js/components/AppContent/PreLaunchFormContainer.js

15 lines
488 B
JavaScript

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