chore(navigate): gatsby depricated navigateTo -> navigate

This commit is contained in:
Bouncey
2018-09-07 13:33:32 +01:00
committed by Stuart Taylor
parent c5c4f3aa41
commit 56494ffc32
4 changed files with 11 additions and 9 deletions

View File

@@ -17,7 +17,7 @@ import Layout from '../components/Layout';
import { ButtonSpacer, Spacer } from '../components/helpers';
import { acceptTerms, userSelector } from '../redux';
import { createSelector } from 'reselect';
import { navigateTo } from 'gatsby';
import { navigate } from 'gatsby';
const propTypes = {
acceptTerms: PropTypes.func.isRequired,
@@ -66,7 +66,7 @@ class AcceptPrivacyTerms extends Component {
render() {
const { acceptedPrivacyTerms } = this.props;
if (acceptedPrivacyTerms) {
navigateTo('/welcome');
navigate('/welcome');
return null;
}
const { privacyPolicy, termsOfService, quincyEmail } = this.state;