update nav on collection view
This commit is contained in:
parent
e2f8fe7e81
commit
067e065c1b
1 changed files with 2 additions and 16 deletions
|
@ -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 (
|
||||
<div className="dashboard">
|
||||
<NavBasic onBack={this.closeAccountPage} />
|
||||
<Nav layout="dashboard" />
|
||||
|
||||
{this.renderContent()}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue