fix: HoverPreview not showing on collaborative editing teams

types
This commit is contained in:
Tom Moor
2021-12-05 19:31:08 -08:00
parent ce2a58e83b
commit 6e371f0d03
13 changed files with 111 additions and 88 deletions

View File

@@ -497,8 +497,6 @@ class DocumentScene extends React.Component<Props> {
}
savingIsDisabled={document.isSaving || this.isEmpty}
sharedTree={this.props.sharedTree}
// @ts-expect-error ts-migrate(2322) FIXME: Type '{ document: Document; shareId: any; isRevisi... Remove this comment to see the full error message
goBack={this.goBack}
onSelectTemplate={this.replaceDocument}
onSave={this.onSave}
headings={headings}

View File

@@ -124,7 +124,7 @@ class DocumentEditor extends React.Component<Props> {
{...rest}
/>
{!readOnly && <ClickablePadding onClick={this.focusAtEnd} grow />}
{this.activeLinkEvent && !shareId && readOnly && (
{this.activeLinkEvent && !shareId && (
<HoverPreview
node={this.activeLinkEvent.target as HTMLAnchorElement}
event={this.activeLinkEvent}

View File

@@ -44,7 +44,6 @@ type Props = {
publishingIsDisabled: boolean;
savingIsDisabled: boolean;
onSelectTemplate: (template: Document) => void;
onDiscard: () => void;
onSave: (options: {
done?: boolean;
publish?: boolean;