blob: efc4fbb836cb13a2827c5a5914d6664a75aff1bf [file] [log] [blame]
import { connect } from 'react-redux';
import VerifyInstallScreen from './VerifyInstallScreen';
import { resetTests, startVerification } from '../actions';
const mapStateToProps = ({ verifyinstall }) => {
return {
isVerifying: verifyinstall.isVerifying,
testResults: verifyinstall.tests
};
};
const mapDispatchToProps = (dispatch) => {
return {
resetTests: () => {
dispatch(resetTests());
},
startVerification: () => {
dispatch(resetTests());
dispatch(startVerification());
}
};
};
const VerifyInstallContainer = connect(
mapStateToProps,
mapDispatchToProps
)(VerifyInstallScreen);
export default VerifyInstallContainer;