diff options
| author | bobzel <zzzman@gmail.com> | 2023-12-03 16:21:52 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-12-03 16:21:52 -0500 |
| commit | c654a31fdb48a76fb4b0562168c920ca850a7b9e (patch) | |
| tree | 76410a9da12919e35f49d3d1f3899856fb0584ce /src/client/views/ComponentDecorations.tsx | |
| parent | 23f789ab0bc9947f1bd23816183df2b5cc89b0e6 (diff) | |
cleaned up warnings and errors, working with typescript 20.10
Diffstat (limited to 'src/client/views/ComponentDecorations.tsx')
| -rw-r--r-- | src/client/views/ComponentDecorations.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/views/ComponentDecorations.tsx b/src/client/views/ComponentDecorations.tsx index 66d1bd63d..0a34b283b 100644 --- a/src/client/views/ComponentDecorations.tsx +++ b/src/client/views/ComponentDecorations.tsx @@ -1,14 +1,14 @@ -import { observer } from "mobx-react"; -import { SelectionManager } from "../util/SelectionManager"; +import { observer } from 'mobx-react'; +import { SelectionManager } from '../util/SelectionManager'; import './ComponentDecorations.scss'; -import React = require("react"); +import * as React from 'react'; @observer -export class ComponentDecorations extends React.Component<{ boundsTop: number, boundsLeft: number }, { value: string }> { +export class ComponentDecorations extends React.Component<{ boundsTop: number; boundsLeft: number }, { value: string }> { static Instance: ComponentDecorations; render() { const seldoc = SelectionManager.Views().lastElement(); - return seldoc?.ComponentView?.componentUI?.(this.props.boundsLeft, this.props.boundsTop) ?? (null); + return seldoc?.ComponentView?.componentUI?.(this.props.boundsLeft, this.props.boundsTop) ?? null; } -}
\ No newline at end of file +} |
