Skip to content

Commit

Permalink
fix: Fix SummarizeWithAI button to use an ActionButton
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Nov 9, 2024
1 parent bff02d6 commit d73f001
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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">
Expand All @@ -136,7 +135,7 @@ export default function SummarizeBookmarkArea({
Summarize with AI
<Sparkles className="size-4" />
</span>
</Button>
</ActionButton>
</div>
);
}
Expand Down

0 comments on commit d73f001

Please sign in to comment.