diff options
| author | bobzel <zzzman@gmail.com> | 2024-05-17 14:55:36 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-05-17 14:55:36 -0400 |
| commit | 0b451af28e5aef6b749da61e8a9fcd0a840789ac (patch) | |
| tree | bdee4e28ee4715b69299a8da1b615c70b6adc445 /src/client/views/ComponentDecorations.tsx | |
| parent | 8c1b420a143e4b72ec551277887c211ca6ca003b (diff) | |
| parent | 38a382a03675d6a50ec7de75f05025efd093f570 (diff) | |
merged with new master
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; } } |
