Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return { firebase };
};
const mapDispatchToProps = (dispatch) => {
return {
// https://www.npmjs.com/package/redux-reset
resetState: () => {
dispatch({ type: 'RESET' });
},
};
};
export default compose(
firebaseConnect(),
connect(mapStateToProps, mapDispatchToProps),
)(withFirebase(Logout));
this.setState({ message: null })}
/>
)
}
}
RecoverContainer.propTypes = {
firebase: PropTypes.object.isRequired
}
export default withFirebase(RecoverContainer)
volunteerApplication: propTypesTemplates.application.hacker,
changePage: PropTypes.func.isRequired,
changeLastActiveIndex: PropTypes.func.isRequired,
activeIndex: PropTypes.number.isRequired,
lastValidIndex: PropTypes.number.isRequired,
updateApplication: PropTypes.func.isRequired,
cancelApplication: PropTypes.func.isRequired,
resetApplicationUI: PropTypes.func.isRequired,
featureFlags: PropTypes.object.isRequired,
firebase: PropTypes.object,
};
export default connect(
mapStateToProps,
mapDispatchToProps
)(withFirebase(VolunteerApplicationContainer));
);
}
}
export default withFirebase(LoginScreen);
});
}}
/>
{submitFailed ? (<p>Failed to submit application, please try again!</p>) : null}
);
}
}
RSVP.propTypes = {
firebase: PropTypes.object.isRequired,
match: PropTypes.object.isRequired,
};
export default withFirebase(RSVP);
hackerApplication: propTypesTemplates.application.hacker,
changePage: PropTypes.func.isRequired,
changeLastActiveIndex: PropTypes.func.isRequired,
activeIndex: PropTypes.number.isRequired,
lastValidIndex: PropTypes.number.isRequired,
updateApplication: PropTypes.func.isRequired,
cancelApplication: PropTypes.func.isRequired,
resetApplicationUI: PropTypes.func.isRequired,
featureFlags: PropTypes.object.isRequired,
firebase: PropTypes.object,
};
export default connect(
mapStateToProps,
mapDispatchToProps
)(withFirebase(HackerApplicationContainer));
/>
);
}
}
export default withFirebase(PasswordScreen);
});
}}
/>
{submitFailed ? (<p>Failed to submit application, please try again!</p>) : null}
);
}
}
volunteerRSVP.propTypes = {
firebase: PropTypes.object.isRequired,
match: PropTypes.object.isRequired,
};
export default withFirebase(volunteerRSVP);
firebase.auth().onAuthStateChanged(user => {
navigation.navigate(user ? 'App' : 'Auth');
});
}
render() {
return (
);
}
}
export default withFirebase(LoadingScreen);