diff --git a/src/components/screens/Register/Register.js b/src/components/screens/Register/Register.js index fdcdfc8..142398c 100644 --- a/src/components/screens/Register/Register.js +++ b/src/components/screens/Register/Register.js @@ -1,5 +1,6 @@ import React, { Component } from "react" import styled from "@emotion/styled" +import { navigate } from "gatsby" import { compose } from "recompose" import { withTheme } from "emotion-theming" @@ -21,10 +22,10 @@ const RegisterLayout = styled.div` margin-top: 20px; ` -const RegisterPage = ({ history, theme }) => ( +const RegisterPage = ({ theme }) => ( - {firebase => } + {firebase => }

Already have an account? Login @@ -68,7 +69,7 @@ class RegisterFormBase extends Component { .set({ email: user.email, }) - this.props.history.push("/") + navigate("app/") }) .catch(error => { this.setState({ error })