Couple of bugfixes

This commit is contained in:
eduardruzga 2024-11-24 15:28:49 +02:00
parent 1f09459fa5
commit 6e94d20a74
2 changed files with 2 additions and 2 deletions

View File

@ -365,7 +365,7 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
</> </>
)} )}
</IconButton> </IconButton>
<ClientOnly>{() => <ExportChatButton exportChat={exportChat} />}</ClientOnly> {chatStarted && <ClientOnly>{() => <ExportChatButton exportChat={exportChat} />}</ClientOnly>}
</div> </div>
{input.length > 3 ? ( {input.length > 3 ? (
<div className="text-xs text-bolt-elements-textTertiary"> <div className="text-xs text-bolt-elements-textTertiary">

View File

@ -5,7 +5,7 @@ import React from 'react';
export const ExportChatButton = ({ exportChat }: { exportChat?: () => void }) => { export const ExportChatButton = ({ exportChat }: { exportChat?: () => void }) => {
return ( return (
<WithTooltip tooltip="Export Chat"> <WithTooltip tooltip="Export Chat">
<IconButton title="Export Chat" onClick={exportChat}> <IconButton title="Export Chat" onClick={() => exportChat?.()}>
<div className="i-ph:download-simple text-xl"></div> <div className="i-ph:download-simple text-xl"></div>
</IconButton> </IconButton>
</WithTooltip> </WithTooltip>