From 067e065c1b4a851b2ffe49f3c9b5c6af38d0f76d Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Wed, 25 Sep 2019 13:20:49 -0400 Subject: [PATCH] update nav on collection view --- client/modules/User/pages/CollectionView.jsx | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/client/modules/User/pages/CollectionView.jsx b/client/modules/User/pages/CollectionView.jsx index a0834bdc..4ab26a8f 100644 --- a/client/modules/User/pages/CollectionView.jsx +++ b/client/modules/User/pages/CollectionView.jsx @@ -4,7 +4,7 @@ import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { browserHistory } from 'react-router'; import { updateSettings, initiateVerification, createApiKey, removeApiKey } from '../actions'; -import NavBasic from '../../../components/NavBasic'; +import Nav from '../../../components/Nav'; import CollectionCreate from '../components/CollectionCreate'; import Collection from '../components/Collection'; @@ -14,24 +14,10 @@ class CollectionView extends React.Component { user: null, }; - constructor(props) { - super(props); - this.closeAccountPage = this.closeAccountPage.bind(this); - this.gotoHomePage = this.gotoHomePage.bind(this); - } - componentDidMount() { document.body.className = this.props.theme; } - closeAccountPage() { - browserHistory.push(this.props.previousPath); - } - - gotoHomePage() { - browserHistory.push('/'); - } - ownerName() { if (this.props.params.username) { return this.props.params.username; @@ -73,7 +59,7 @@ class CollectionView extends React.Component { render() { return (
- +