Skip to content

An AI-powered search engine with a generative UI

Refactor chat-share component to fix button visibility issue

Yoshiki Miura8198335db6d1
diff --git a/components/chat-share.tsx b/components/chat-share.tsx
index 2eacd71f..cfcc8abc 100644
--- a/components/chat-share.tsx
+++ b/components/chat-share.tsx
@@ -73,7 +73,7 @@ export function ChatShare({ chatId, className }: ChatShareProps) {
>
<DialogTrigger asChild>
<Button
- className={cn('rounded-full', isLoading && 'hidden')}
+ className={cn('rounded-full', isLoading && 'invisible')}
size="icon"
variant={'ghost'}
onClick={() => setOpen(true)}