import React, { Component } from 'react'; import { SnackbarHOC, getImageUrl } from 'educoder'; import AccountImg from './AccountImg' class AccountNav extends Component { toBasic = () => { this.props.history.push(`/account/profile`) } toCertification = () => { this.props.history.push(`/account/certification`) } toSecure = () => { this.props.history.push(`/account/secure`) } isBinding = () => { this.props.history.push(`/account/binding`) } render() { let { basicInfo, current_user } = this.props // console.log(this.props); const path = window.location.pathname const isBasic = path.indexOf('profile') != -1 || path == "/account" const isCertification = path.indexOf('certification') != -1 const isSecure = path.indexOf('secure') != -1 const isBinding = path.indexOf('binding') != -1 return (