aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/dashboard
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/components/dashboard')
-rw-r--r--apps/web/components/dashboard/bookmarks/SummarizeBookmarkArea.tsx7
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>
);
}