aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/ComponentDecorations.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-05-15 10:55:17 -0400
committerbobzel <zzzman@gmail.com>2024-05-15 10:55:17 -0400
commit213e5c5ab7dcb7a92a2d6c0e2ca10433ddc3141f (patch)
tree01a4c5501ce4e6ce8fb74c4a64acb6bc77c5562e /src/client/views/ComponentDecorations.tsx
parentc329d7719ed60d71bec4a8ac7309e33081c3373c (diff)
parent0b1d434ad7f0d057456631ac786ed338c84a7f41 (diff)
merged with new eslint code
Diffstat (limited to 'src/client/views/ComponentDecorations.tsx')
-rw-r--r--src/client/views/ComponentDecorations.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/views/ComponentDecorations.tsx b/src/client/views/ComponentDecorations.tsx
index ca4e5f2bc..929b549e0 100644
--- a/src/client/views/ComponentDecorations.tsx
+++ b/src/client/views/ComponentDecorations.tsx
@@ -1,14 +1,15 @@
import { observer } from 'mobx-react';
-import { SelectionManager } from '../util/SelectionManager';
-import './ComponentDecorations.scss';
import * as React from 'react';
+import './ComponentDecorations.scss';
+import { DocumentView } from './nodes/DocumentView';
@observer
export class ComponentDecorations extends React.Component<{ boundsTop: number; boundsLeft: number }, { value: string }> {
+ // eslint-disable-next-line no-use-before-define
static Instance: ComponentDecorations;
render() {
- const seldoc = SelectionManager.Views.lastElement();
+ const seldoc = DocumentView.Selected().lastElement();
return seldoc?.ComponentView?.componentUI?.(this.props.boundsLeft, this.props.boundsTop) ?? null;
}
}