fix: make it build
This commit is contained in:
@@ -1282,7 +1282,6 @@ export const EditorFormatUnderline = ({
|
||||
|
||||
return (
|
||||
<BubbleMenuButton
|
||||
// @ts-expect-error "TipTap extensions are not typed"
|
||||
command={() => editor.chain().focus().toggleUnderline().run()}
|
||||
hideName={hideName}
|
||||
icon={UnderlineIcon}
|
||||
@@ -1343,7 +1342,6 @@ export const EditorLinkSelector = ({
|
||||
const href = getUrlFromString(url);
|
||||
|
||||
if (href) {
|
||||
// @ts-expect-error "TipTap extensions are not typed"
|
||||
editor.chain().focus().setLink({ href }).run();
|
||||
onOpenChange?.(false);
|
||||
}
|
||||
@@ -1388,7 +1386,6 @@ export const EditorLinkSelector = ({
|
||||
<Button
|
||||
className="flex h-8 items-center rounded-sm p-1 text-destructive transition-all hover:bg-destructive-foreground dark:hover:bg-destructive"
|
||||
onClick={() => {
|
||||
// @ts-expect-error "TipTap extensions are not typed"
|
||||
editor.chain().focus().unsetLink().run();
|
||||
onOpenChange?.(false);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user