From 329565c35729f5171de9efa30f36e6b4e0714101 Mon Sep 17 00:00:00 2001 From: Monika Date: Mon, 24 Jun 2019 16:10:19 -0400 Subject: lint fixes --- src/client/views/collections/CollectionDockingView.tsx | 4 ++-- src/client/views/collections/CollectionStackingView.tsx | 2 +- src/client/views/search/IconBar.tsx | 2 +- src/client/views/search/NaviconButton.tsx | 2 +- src/client/views/search/SearchBox.tsx | 2 +- src/client/views/search/SearchItem.tsx | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index 30d68fffd..c43497cfd 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -260,9 +260,9 @@ export class CollectionDockingView extends React.Component { this._isPointerDown = true; let onPointerUp = action(() => { - window.removeEventListener("pointerup", onPointerUp) + window.removeEventListener("pointerup", onPointerUp); this._isPointerDown = false; - }) + }); window.addEventListener("pointerup", onPointerUp); var className = (e.target as any).className; if (className === "messageCounter") { diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx index c855cb43a..597e4795c 100644 --- a/src/client/views/collections/CollectionStackingView.tsx +++ b/src/client/views/collections/CollectionStackingView.tsx @@ -99,7 +99,7 @@ export class CollectionStackingView extends CollectionSubView(doc => doc) { let dref = React.createRef(); let dxf = () => this.getDocTransform(d, dref.current!).scale(this.columnWidth / d[WidthSym]()); let width = () => d.nativeWidth ? Math.min(d[WidthSym](), this.columnWidth) : this.columnWidth; - let height = () => aspect ? width() / aspect : d[HeightSym]() + let height = () => aspect ? width() / aspect : d[HeightSym](); let rowSpan = Math.ceil((height() + this.gridGap) / (this._gridSize + this.gridGap)); return (
{ return SearchBox.Instance.getIcons(); } + getList(): string[] { return SearchBox.Instance.getIcons(); } @action.bound updateList(newList: string[]) { SearchBox.Instance.updateIcon(newList); } diff --git a/src/client/views/search/NaviconButton.tsx b/src/client/views/search/NaviconButton.tsx index 3f9bb030f..e319b945a 100644 --- a/src/client/views/search/NaviconButton.tsx +++ b/src/client/views/search/NaviconButton.tsx @@ -20,7 +20,7 @@ export class NaviconButton extends React.Component { that.ref.current.classList.toggle('active'); return false; } - })}; + });} } render() { diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx index 28bcadc6b..07e7496cf 100644 --- a/src/client/views/search/SearchBox.tsx +++ b/src/client/views/search/SearchBox.tsx @@ -92,7 +92,7 @@ export class SearchBox extends React.Component { }, 200); setTimeout(() => { panel.style.opacity = "1"; - }, 50) + }, 50); panel.style.maxHeight = panel.scrollHeight + "px"; } diff --git a/src/client/views/search/SearchItem.tsx b/src/client/views/search/SearchItem.tsx index e80d42a5c..fa9d58152 100644 --- a/src/client/views/search/SearchItem.tsx +++ b/src/client/views/search/SearchItem.tsx @@ -129,7 +129,7 @@ export class SearchItem extends React.Component { return num.toString() + " links"; } - pointerDown = (e: React.PointerEvent) => { SearchBox.Instance.openSearch(e); } + pointerDown = (e: React.PointerEvent) => { SearchBox.Instance.openSearch(e); }; highlightDoc = (e: React.PointerEvent) => { let docViews: DocumentView[] = DocumentManager.Instance.getAllDocumentViews(this.props.doc); -- cgit v1.2.3-70-g09d2