aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/SidebarAnnos.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-08-20 19:11:00 -0400
committerbobzel <zzzman@gmail.com>2024-08-20 19:11:00 -0400
commit5196009ec6bcb673fd2a4519c54442df218841f7 (patch)
tree79f4b1d559c20a6bfd9b4759a5cbe9d8f8c00fe1 /src/client/views/SidebarAnnos.tsx
parent0e975569e5686138e52bdc554b3f0391f42aeead (diff)
parente57584a1be9d428fb40fc789494a7ac0ac14fb84 (diff)
fixed up a bunch of things in face recognition
Diffstat (limited to 'src/client/views/SidebarAnnos.tsx')
-rw-r--r--src/client/views/SidebarAnnos.tsx10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/client/views/SidebarAnnos.tsx b/src/client/views/SidebarAnnos.tsx
index 9b70f1ca7..8f0a35df0 100644
--- a/src/client/views/SidebarAnnos.tsx
+++ b/src/client/views/SidebarAnnos.tsx
@@ -1,5 +1,3 @@
-/* eslint-disable jsx-a11y/no-static-element-interactions */
-/* eslint-disable jsx-a11y/click-events-have-key-events */
import { computed, makeObservable } from 'mobx';
import { observer } from 'mobx-react';
import * as React from 'react';
@@ -40,7 +38,7 @@ interface ExtraProps {
}
@observer
export class SidebarAnnos extends ObservableReactComponent<FieldViewProps & ExtraProps> {
- constructor(props: any) {
+ constructor(props: FieldViewProps & ExtraProps) {
super(props);
makeObservable(this);
}
@@ -85,7 +83,7 @@ export class SidebarAnnos extends ObservableReactComponent<FieldViewProps & Extr
});
Doc.SetSelectOnLoad(target);
FormattedTextBox.DontSelectInitialText = true;
- const link = DocUtils.MakeLink(anchor, target, { link_relationship: 'inline comment:comment on' });
+ DocUtils.MakeLink(anchor, target, { link_relationship: 'inline comment:comment on' });
const taggedContent = this.childFilters()
.filter(data => data.split(':')[0])
@@ -102,7 +100,7 @@ export class SidebarAnnos extends ObservableReactComponent<FieldViewProps & Extr
});
if (!anchor.text) anchor[DocData].text = '-selection-';
- const textLines: any = [
+ const textLines: { type: string; attrs: object; content?: unknown[] }[] = [
{
type: 'paragraph',
attrs: { align: null, color: null, id: null, indent: null, inset: null, lineSpacing: null, paddingBottom: null, paddingTop: null },
@@ -222,7 +220,7 @@ export class SidebarAnnos extends ObservableReactComponent<FieldViewProps & Extr
pointerEvents: this._props.isContentActive() ? 'all' : undefined,
top: this._props.Document.type !== DocumentType.RTF && StrCast(this._props.Document._layout_showTitle) === 'title' ? 15 : 0,
right: 0,
- background: this._props.styleProvider?.(this._props.Document, this._props, StyleProp.WidgetColor),
+ background: this._props.styleProvider?.(this._props.Document, this._props, StyleProp.WidgetColor) as string,
width: `100%`,
height: '100%',
}}>