Couple of bugfixes
Browse files
app/components/chat/BaseChat.tsx
CHANGED
|
@@ -365,7 +365,7 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
|
|
| 365 |
</>
|
| 366 |
)}
|
| 367 |
</IconButton>
|
| 368 |
-
<ClientOnly>{() => <ExportChatButton exportChat={exportChat} />}</ClientOnly>
|
| 369 |
</div>
|
| 370 |
{input.length > 3 ? (
|
| 371 |
<div className="text-xs text-bolt-elements-textTertiary">
|
|
|
|
| 365 |
</>
|
| 366 |
)}
|
| 367 |
</IconButton>
|
| 368 |
+
{chatStarted && <ClientOnly>{() => <ExportChatButton exportChat={exportChat} />}</ClientOnly>}
|
| 369 |
</div>
|
| 370 |
{input.length > 3 ? (
|
| 371 |
<div className="text-xs text-bolt-elements-textTertiary">
|
app/components/chat/ExportChatButton.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
| 5 |
export const ExportChatButton = ({ exportChat }: { exportChat?: () => void }) => {
|
| 6 |
return (
|
| 7 |
<WithTooltip tooltip="Export Chat">
|
| 8 |
-
<IconButton title="Export Chat" onClick={exportChat}>
|
| 9 |
<div className="i-ph:download-simple text-xl"></div>
|
| 10 |
</IconButton>
|
| 11 |
</WithTooltip>
|
|
|
|
| 5 |
export const ExportChatButton = ({ exportChat }: { exportChat?: () => void }) => {
|
| 6 |
return (
|
| 7 |
<WithTooltip tooltip="Export Chat">
|
| 8 |
+
<IconButton title="Export Chat" onClick={() => exportChat?.()}>
|
| 9 |
<div className="i-ph:download-simple text-xl"></div>
|
| 10 |
</IconButton>
|
| 11 |
</WithTooltip>
|