update app and towerlogo tests and remove stale code

This commit is contained in:
John Mitchell
2018-12-11 16:53:17 -05:00
committed by Jake McDermott
parent ebd09883fe
commit e25dcb2448
4 changed files with 10 additions and 47 deletions

View File

@@ -81,13 +81,8 @@ class App extends React.Component {
this.setState(({ isNavOpen }) => ({ isNavOpen: !isNavOpen }));
};
onLogoClick = () => {
this.setState({ activeGroup: 'views_group' });
}
onDevLogout = async () => {
await api.get(API_LOGOUT);
this.setState({ activeGroup: 'views_group', activeItem: 'views_group_dashboard' });
}
render () {
@@ -134,7 +129,7 @@ class App extends React.Component {
<Page
header={(
<PageHeader
logo={<TowerLogo onClick={this.onLogoClick} />}
logo={<TowerLogo />}
toolbar={PageToolbar}
showNavToggle
onNavToggle={this.onNavToggle}

View File

@@ -15,13 +15,8 @@ class TowerLogo extends Component {
}
onClick = () => {
const { history, onClick: handleClick } = this.props;
if (!handleClick) return;
const { history } = this.props;
history.push('/');
handleClick();
};
onHover = () => {