aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/CaptureManager.tsx
diff options
context:
space:
mode:
authorA.J. Shulman <Shulman.aj@gmail.com>2024-09-05 11:40:24 -0400
committerA.J. Shulman <Shulman.aj@gmail.com>2024-09-05 11:40:24 -0400
commitc1053475810a1b1b3a9963c3f1ef0b1a9509d222 (patch)
tree41da9f26592ba7f189f8d00536435182e38272da /src/client/util/CaptureManager.tsx
parent785e55141cab178a761080f5c99384bb19855969 (diff)
parent9014cc474a039f0daef6cc0ee2011329da7703ac (diff)
merged with master
Diffstat (limited to 'src/client/util/CaptureManager.tsx')
-rw-r--r--src/client/util/CaptureManager.tsx10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/client/util/CaptureManager.tsx b/src/client/util/CaptureManager.tsx
index 253cdd8b5..47f31612f 100644
--- a/src/client/util/CaptureManager.tsx
+++ b/src/client/util/CaptureManager.tsx
@@ -1,26 +1,24 @@
-/* eslint-disable jsx-a11y/no-static-element-interactions */
-/* eslint-disable jsx-a11y/click-events-have-key-events */
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { action, computed, makeObservable, observable } from 'mobx';
import { observer } from 'mobx-react';
import * as React from 'react';
import { addStyleSheet } from '../../ClientUtils';
-import { Doc } from '../../fields/Doc';
+import { Doc, Opt } from '../../fields/Doc';
import { DocCast, StrCast } from '../../fields/Types';
import { MainViewModal } from '../views/MainViewModal';
import { DocumentView } from '../views/nodes/DocumentView';
import './CaptureManager.scss';
@observer
-export class CaptureManager extends React.Component<{}> {
+export class CaptureManager extends React.Component<object> {
// eslint-disable-next-line no-use-before-define
public static Instance: CaptureManager;
static _settingsStyle = addStyleSheet();
- @observable _document: any = undefined;
+ @observable _document: Opt<Doc> = undefined;
@observable isOpen: boolean = false; // whether the CaptureManager is to be displayed or not.
// eslint-disable-next-line react/sort-comp
- constructor(props: {}) {
+ constructor(props: object) {
super(props);
makeObservable(this);
CaptureManager.Instance = this;