removed old code

This commit is contained in:
Jori Lallo
2017-05-13 16:51:27 -07:00
parent a4bc4663ef
commit 823d6a934c

View File

@@ -147,30 +147,6 @@ class DocumentScene extends React.Component {
}
};
renderLayoutTitle() {
const { document, pathToDocument } = this.store;
if (document && document.collection) {
const titleSections = pathToDocument
? pathToDocument.map(node => (
<Link key={node.id} to={node.url}>{node.title}</Link>
))
: [];
titleSections.unshift(
<Link key={document.collection.id} to={document.collection.url}>
{document.collection.name}
</Link>
);
return (
<span>
&nbsp;/&nbsp;
{titleSections.reduce((prev, curr) => [prev, ' / ', curr])}
{` / ${document.title}`}
</span>
);
}
}
render() {
const { sidebar } = this.props.ui;