fix: make it build

This commit is contained in:
valknarness
2025-10-26 00:02:56 +02:00
parent acfba84a35
commit 6ee26db0ba
8 changed files with 427 additions and 409 deletions

View File

@@ -29,7 +29,7 @@ export function CommandMenu({ open, setOpen }: CommandMenuProps) {
const fetchData = React.useCallback(async () => {
const response = await fetch(`/api/search?q=${encodeURIComponent(search)}`)
const data = await response.json()
setResults(...data.results);
setResults(data.results);
}, [])
React.useEffect(() => {

View File

@@ -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);
}}