issue-537

This commit is contained in:
Tom Moor
2018-01-29 22:31:49 -08:00
parent 7be5b5fa0d
commit ba72ecb0e3
5 changed files with 119 additions and 69 deletions

View File

@@ -76,14 +76,9 @@ type CollectionLinkProps = {
@observer
class CollectionLink extends Component {
props: CollectionLinkProps;
dropzoneRef;
@observable menuOpen = false;
handleImport = () => {
this.dropzoneRef.open();
};
renderDocuments() {
const {
history,
@@ -119,7 +114,6 @@ class CollectionLink extends Component {
collectionId={collection.id}
activeClassName="activeDropZone"
menuOpen={this.menuOpen}
dropzoneRef={ref => (this.dropzoneRef = ref)}
>
<SidebarLink
key={collection.id}
@@ -139,8 +133,6 @@ class CollectionLink extends Component {
collection={collection}
onOpen={() => (this.menuOpen = true)}
onClose={() => (this.menuOpen = false)}
onImport={this.handleImport}
open={this.menuOpen}
/>
</CollectionAction>
</CollectionName>