Even less history passing, fix global styles warning in dev

This commit is contained in:
Tom Moor
2019-01-19 00:44:16 -08:00
parent 13501b6d76
commit 77a8f54973
6 changed files with 23 additions and 36 deletions

View File

@@ -13,7 +13,6 @@ import DropToImport from 'components/DropToImport';
import Flex from 'shared/components/Flex';
type Props = {
history: Object,
collection: Collection,
ui: UiStore,
activeDocument: ?Document,
@@ -25,19 +24,12 @@ class CollectionLink extends React.Component<Props> {
@observable menuOpen = false;
render() {
const {
history,
collection,
activeDocument,
prefetchDocument,
ui,
} = this.props;
const { collection, activeDocument, prefetchDocument, ui } = this.props;
const expanded = collection.id === ui.activeCollectionId;
return (
<DropToImport
key={collection.id}
history={history}
collectionId={collection.id}
activeClassName="activeDropZone"
>
@@ -72,7 +64,6 @@ class CollectionLink extends React.Component<Props> {
{collection.documents.map(document => (
<DocumentLink
key={document.id}
history={history}
document={document}
activeDocument={activeDocument}
prefetchDocument={prefetchDocument}