diff options
| author | bobzel <zzzman@gmail.com> | 2024-05-19 00:05:18 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-05-19 00:05:18 -0400 |
| commit | 38742d5f491ed5232a381da63e126b609cf14aad (patch) | |
| tree | a723b0c9dfffa717b70df383d21fb3b14567308f /src/client/views/ComponentDecorations.tsx | |
| parent | a3784cd3ab990d8016b1168eb0cbf7e9a2f22301 (diff) | |
| parent | 0b451af28e5aef6b749da61e8a9fcd0a840789ac (diff) | |
Merge branch 'restoringEslint' into aisosa-starter
Diffstat (limited to 'src/client/views/ComponentDecorations.tsx')
| -rw-r--r-- | src/client/views/ComponentDecorations.tsx | 7 |
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; } } |
