Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// dismissed
}
} catch (error) {
alert(error.message);
console.log(error.message);
}
}
}
function mapStateToProps(state) {
return state;
}
const styles = StyleSheet.create({
container: {
paddingTop: getStatusBarHeight(true),
flex: 1,
backgroundColor: Colors.backgroundColor,
},
});
export default connect(mapStateToProps, {})(InviteScreen);
);
}
_toggleProductModal() {
this.setState({isProductModalVisible: !this.state.isProductModalVisible});
}
}
function mapStateToProps(state) {
return state;
}
const styles = StyleSheet.create({
container: {
paddingTop: getStatusBarHeight(true),
flex: 1,
backgroundColor: Colors.backgroundColor,
},
});
export default connect(mapStateToProps, {logout})(ProfileScreen);
this.setState({passwordError: "Please enter a password"});
return;
}
this.props.login(this.state.email.toLowerCase(), this.state.password);
}
}
function mapStateToProps(state) {
return state;
}
const styles = StyleSheet.create({
container: {
paddingTop: getStatusBarHeight(true),
flex: 1,
backgroundColor: Colors.backgroundColor,
},
});
export default connect(mapStateToProps, {login})(LoginScreen);
:
}
);
}
}
function mapStateToProps(state) {
return state;
}
const styles = StyleSheet.create({
container: {
paddingTop: getStatusBarHeight(true),
flex: 1,
backgroundColor: Colors.backgroundColor,
},
});
export default connect(mapStateToProps, {addAlert})(WalletScreen);
this.props.addAlert("error", "", "Please accept our terms of use");
return;
}
this.props.signup(this.state.email.toLowerCase(), this.state.username.toLowerCase(), this.state.password);
}
}
function mapStateToProps(state) {
return state;
}
const styles = StyleSheet.create({
container: {
paddingTop: getStatusBarHeight(true),
flex: 1,
backgroundColor: Colors.backgroundColor,
},
});
export default connect(mapStateToProps, {signup, addAlert})(SignupScreen);