diff options
| author | Mohamed Bassem <me@mbassem.com> | 2024-11-09 16:48:44 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2024-11-09 16:48:44 +0000 |
| commit | d73f00106fed7a4d9bd298be9326f795efdc46fd (patch) | |
| tree | 769aa5b6493916742209218b840caad1a299b5ab /apps/web/components/dashboard | |
| parent | bff02d68151a543788d5df2a82fe8444592f0ed8 (diff) | |
| download | karakeep-d73f00106fed7a4d9bd298be9326f795efdc46fd.tar.zst | |
fix: Fix SummarizeWithAI button to use an ActionButton
Diffstat (limited to 'apps/web/components/dashboard')
| -rw-r--r-- | apps/web/components/dashboard/bookmarks/SummarizeBookmarkArea.tsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/web/components/dashboard/bookmarks/SummarizeBookmarkArea.tsx b/apps/web/components/dashboard/bookmarks/SummarizeBookmarkArea.tsx index 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 + <ActionButton onClick={() => 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> ); } |
