aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentButtonBar.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-09-18 13:17:07 -0400
committerbobzel <zzzman@gmail.com>2020-09-18 13:17:07 -0400
commitf62fb0f5f90eee7c946deaa3a6e856b76e88f9f1 (patch)
tree9fcd68bb125b57c4a481a86567e06db4f5b19549 /src/client/views/DocumentButtonBar.tsx
parentc260df7a30a5601d784fe9ccaccd805fbefde51d (diff)
cleaned up warnings and split collection tree view into Tree View a
Diffstat (limited to 'src/client/views/DocumentButtonBar.tsx')
-rw-r--r--src/client/views/DocumentButtonBar.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/DocumentButtonBar.tsx b/src/client/views/DocumentButtonBar.tsx
index 575ebaf3b..c5fd3c777 100644
--- a/src/client/views/DocumentButtonBar.tsx
+++ b/src/client/views/DocumentButtonBar.tsx
@@ -184,7 +184,7 @@ export class DocumentButtonBar extends React.Component<{ views: () => (DocumentV
@computed
get pinButton() {
const targetDoc = this.view0?.props.Document;
- let isPinned = targetDoc && Doc.isDocPinned(targetDoc);
+ const isPinned = targetDoc && Doc.isDocPinned(targetDoc);
return !targetDoc ? (null) : <Tooltip title={<><div className="dash-tooltip">{"Pin to presentation"}</div></>}>
<div className="documentButtonBar-linker"
style={{ color: "white" }}
@@ -276,7 +276,7 @@ export class DocumentButtonBar extends React.Component<{ views: () => (DocumentV
this.props.views()[0]?.select(false);
this._tooltipOpen = false;
setupMoveUpEvents(this, e, this.onAliasButtonMoved, emptyFunction, emptyFunction);
- })
+ });
onAliasButtonMoved = () => {
if (this._dragRef.current) {
const dragDocView = this.view0!;