diff --git a/src/components/MainCointainer.jsx b/src/components/MainCointainer.jsx index 18cf786..793d46f 100644 --- a/src/components/MainCointainer.jsx +++ b/src/components/MainCointainer.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Route, Link, Switch } from 'react-router-dom' +import { Route, Link, Switch, withRouter } from 'react-router-dom' import PropTypes from 'prop-types'; import classNames from 'classnames'; import { withStyles } from '@material-ui/core/styles'; @@ -150,8 +150,9 @@ class PersistentDrawerLeft extends React.Component { }; render() { - const { classes, theme, loading, account, enableEthereum } = this.props + const { classes, theme, loading, account, enableEthereum, location: { pathname } } = this.props const { open } = this.state + const isHome = pathname === "/" return (