diff options
author | bobzel <zzzman@gmail.com> | 2020-08-01 09:39:38 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-08-01 09:39:38 -0400 |
commit | b33e31e369aef6e0675219c96ba4b8a058a69b0c (patch) | |
tree | b71dca5ca18c137e0a4a3d9edb38f97e4ee3dc94 /src/client/views/collections/CollectionDockingView.tsx | |
parent | e084dfdc8da4cbf2ad7039111d9118a330259a33 (diff) |
fixed warnings
Diffstat (limited to 'src/client/views/collections/CollectionDockingView.tsx')
-rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index 9ce5cb03b..7a0a06069 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -521,7 +521,7 @@ export class CollectionDockingView extends React.Component<SubCollectionViewProp tab.element[0].onpointerdown = (e: any) => { const view = DocumentManager.Instance.getDocumentView(doc); view && SelectionManager.SelectDoc(view, false); - } + }; // shifts the focus to this tab when another tab is dragged over it tab.element[0].onmouseenter = (e: any) => { if (!this._isPointerDown || !SnappingManager.GetIsDragging()) return; @@ -747,10 +747,10 @@ export class DockedFrameRenderer extends React.Component<DockedFrameProps> { this.onActiveContentItemChanged(); this._tabReaction = reaction(() => ({ views: SelectionManager.SelectedDocuments(), color: StrCast(this._document?._backgroundColor, "white") }), (data) => { - const selected = data.views.some(v => Doc.AreProtosEqual(v.props.Document, this._document)) + const selected = data.views.some(v => Doc.AreProtosEqual(v.props.Document, this._document)); this._tab.style.backgroundColor = selected ? data.color : ""; } - ) + ); } componentWillUnmount() { |