From 94e6613e92a71e35427875e4ed8eb72a0302bca1 Mon Sep 17 00:00:00 2001 From: madelinegr Date: Thu, 6 Jun 2019 19:17:02 -0400 Subject: i hate everytihgn the freickin import end of day 6/6 --- src/client/views/SearchItem.tsx | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'src/client/views/SearchItem.tsx') diff --git a/src/client/views/SearchItem.tsx b/src/client/views/SearchItem.tsx index c80d9baa2..8e6a4010a 100644 --- a/src/client/views/SearchItem.tsx +++ b/src/client/views/SearchItem.tsx @@ -17,7 +17,6 @@ import { CollectionViewType } from "./collections/CollectionBaseView"; export interface SearchItemProps { doc: Doc; - // addDocTab(doc: Doc, location: string): void } library.add(faCaretUp); @@ -63,28 +62,17 @@ export class SelectorContextMenu extends React.Component { col.panX = newPanX; col.panY = newPanY; } - // this.props.addDocTab(col, "inTab"); CollectionDockingView.Instance.AddRightSplit(col); }; } - onClick = () => { - console.log("click"); - } - //these all need class names in order to find ancestor - please do not delete render() { return ( < div className="parents">

Contexts:

- {this._docs.map(doc =>
{ - console.log("clicked"); - this.getOnClick(doc) - }}>{doc.col.title}
)} - {this._otherDocs.map(doc =>
{ - console.log("clicked"); - this.getOnClick(doc) - }}>{doc.col.title}
)} + {this._docs.map(doc =>
{doc.col.title}
)} + {this._otherDocs.map(doc =>
{doc.col.title}
)} ); } @@ -97,7 +85,8 @@ export class SearchItem extends React.Component { @observable hover = false; onClick = () => { - DocumentManager.Instance.jumpToDocument(this.props.doc); + // DocumentManager.Instance.jumpToDocument(this.props.doc); + CollectionDockingView.Instance.AddRightSplit(this.props.doc); } public DocumentIcon() { -- cgit v1.2.3-70-g09d2