aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/search
diff options
context:
space:
mode:
authorMonika <monika_hedman@brown.edu>2019-06-24 16:10:19 -0400
committerMonika <monika_hedman@brown.edu>2019-06-24 16:10:19 -0400
commit329565c35729f5171de9efa30f36e6b4e0714101 (patch)
treeeeb28d92569c7ff286d16a343979001ba3e91849 /src/client/views/search
parent56394d6631f494526546cb5cd03297b400a85e65 (diff)
lint fixes
Diffstat (limited to 'src/client/views/search')
-rw-r--r--src/client/views/search/IconBar.tsx2
-rw-r--r--src/client/views/search/NaviconButton.tsx2
-rw-r--r--src/client/views/search/SearchBox.tsx2
-rw-r--r--src/client/views/search/SearchItem.tsx2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/client/views/search/IconBar.tsx b/src/client/views/search/IconBar.tsx
index 8746ac6e2..f361429f7 100644
--- a/src/client/views/search/IconBar.tsx
+++ b/src/client/views/search/IconBar.tsx
@@ -44,7 +44,7 @@ export class IconBar extends React.Component {
}
@action.bound
- getList = (): string[] => { 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<NaviconProps> {
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<SearchItemProps> {
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);