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 { bindActionCreators } from 'redux';
|
||||||
import { browserHistory } from 'react-router';
|
import { browserHistory } from 'react-router';
|
||||||
import { updateSettings, initiateVerification, createApiKey, removeApiKey } from '../actions';
|
import { updateSettings, initiateVerification, createApiKey, removeApiKey } from '../actions';
|
||||||
import NavBasic from '../../../components/NavBasic';
|
import Nav from '../../../components/Nav';
|
||||||
|
|
||||||
import CollectionCreate from '../components/CollectionCreate';
|
import CollectionCreate from '../components/CollectionCreate';
|
||||||
import Collection from '../components/Collection';
|
import Collection from '../components/Collection';
|
||||||
|
@ -14,24 +14,10 @@ class CollectionView extends React.Component {
|
||||||
user: null,
|
user: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(props) {
|
|
||||||
super(props);
|
|
||||||
this.closeAccountPage = this.closeAccountPage.bind(this);
|
|
||||||
this.gotoHomePage = this.gotoHomePage.bind(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
document.body.className = this.props.theme;
|
document.body.className = this.props.theme;
|
||||||
}
|
}
|
||||||
|
|
||||||
closeAccountPage() {
|
|
||||||
browserHistory.push(this.props.previousPath);
|
|
||||||
}
|
|
||||||
|
|
||||||
gotoHomePage() {
|
|
||||||
browserHistory.push('/');
|
|
||||||
}
|
|
||||||
|
|
||||||
ownerName() {
|
ownerName() {
|
||||||
if (this.props.params.username) {
|
if (this.props.params.username) {
|
||||||
return this.props.params.username;
|
return this.props.params.username;
|
||||||
|
@ -73,7 +59,7 @@ class CollectionView extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className="dashboard">
|
<div className="dashboard">
|
||||||
<NavBasic onBack={this.closeAccountPage} />
|
<Nav layout="dashboard" />
|
||||||
|
|
||||||
{this.renderContent()}
|
{this.renderContent()}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue