mirror of
https://github.com/stackblitz/bolt.new
synced 2025-02-06 04:48:04 +00:00
Couple of bugfixes
This commit is contained in:
parent
1f09459fa5
commit
6e94d20a74
@ -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">
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user