import React, { Component } from 'react'; import { Header } from 'semantic-ui-react'; import {connect} from "react-redux"; import UsernameFormContainer from './UsernameFormContainer'; class SignUp extends Component { componentDidUpdate(prevProps) { if (this.props.user.hasSignedUp && !prevProps.user.hasSignedUp){ this.props.history.push("/"); } } render() { return ( this.props.user.hasSignedUp ?(
Account address: {this.props.user.address}