A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
fix: Fix SummarizeWithAI button to use an ActionButton
Mohamed Bassemd73f00106fed
diff --git a/apps/web/components/dashboard/bookmarks/SummarizeBookmarkArea.tsx b/apps/web/components/dashboard/bookmarks/SummarizeBookmarkArea.tsxindex 44f7bcf4..5dfa3166 100644--- a/apps/web/components/dashboard/bookmarks/SummarizeBookmarkArea.tsx+++ b/apps/web/components/dashboard/bookmarks/SummarizeBookmarkArea.tsx@@ -1,6 +1,5 @@import React from "react";import { ActionButton } from "@/components/ui/action-button";-import { Button } from "@/components/ui/button";import LoadingSpinner from "@/components/ui/spinner";import { toast } from "@/components/ui/use-toast";import { cn } from "@/lib/utils";@@ -118,13 +117,13 @@ export default function SummarizeBookmarkArea({} else {return (<div className="flex w-full items-center gap-4">- <Button+ <ActionButtononClick={() => mutate({ bookmarkId: bookmark.id })}className={cn(`relative w-full overflow-hidden bg-opacity-30 bg-gradient-to-r from-blue-400 via-purple-500 to-pink-500 transition-all duration-300`,isPending ? "text-transparent" : "text-gray-50",)}- disabled={isPending}+ loading={isPending}>{isPending && (<div className="absolute inset-0 flex items-center justify-center">@@ -136,7 +135,7 @@ export default function SummarizeBookmarkArea({Summarize with AI<Sparkles className="size-4" /></span>- </Button>+ </ActionButton></div>);}