Skip to content

Commit

Permalink
Fix NodeViewWrapper issue
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenbleasel committed Aug 13, 2024
1 parent 59eba8e commit 7c94306
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/extensions/media-single/client.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Node, mergeAttributes } from '@tiptap/core';
import { ReactNodeViewRenderer } from '@tiptap/react';
import { NodeViewWrapper, ReactNodeViewRenderer } from '@tiptap/react';

export const MediaSingleClient = Node.create({
name: 'mediaSingle',
Expand Down Expand Up @@ -29,9 +29,11 @@ export const MediaSingleClient = Node.create({
addNodeView() {
return ReactNodeViewRenderer(() => {
return (
<div className="pointer-events-none border flex aspect-video w-full select-none items-center justify-center rounded-lg bg-card">
<p>Sorry, we can't render images from Jira just yet.</p>
</div>
<NodeViewWrapper>
<div className="pointer-events-none border flex aspect-video w-full select-none items-center justify-center rounded-lg bg-card">
<p>Sorry, we can't render images from Jira just yet.</p>
</div>
</NodeViewWrapper>
);
});
},
Expand Down

0 comments on commit 7c94306

Please sign in to comment.