mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-01-23 11:17:02 +00:00
lint fix
This commit is contained in:
parent
773e69ef7a
commit
5692a4c011
@ -488,13 +488,15 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
|
|||||||
<IconButton
|
<IconButton
|
||||||
title="Model Settings"
|
title="Model Settings"
|
||||||
className={classNames('transition-all flex items-center gap-1', {
|
className={classNames('transition-all flex items-center gap-1', {
|
||||||
'bg-bolt-elements-item-backgroundAccent text-bolt-elements-item-contentAccent': isModelSettingsCollapsed,
|
'bg-bolt-elements-item-backgroundAccent text-bolt-elements-item-contentAccent':
|
||||||
'bg-bolt-elements-item-backgroundDefault text-bolt-elements-item-contentDefault': !isModelSettingsCollapsed,
|
isModelSettingsCollapsed,
|
||||||
|
'bg-bolt-elements-item-backgroundDefault text-bolt-elements-item-contentDefault':
|
||||||
|
!isModelSettingsCollapsed,
|
||||||
})}
|
})}
|
||||||
onClick={() => setIsModelSettingsCollapsed(!isModelSettingsCollapsed)}
|
onClick={() => setIsModelSettingsCollapsed(!isModelSettingsCollapsed)}
|
||||||
>
|
>
|
||||||
<div className={`i-ph:caret-${isModelSettingsCollapsed ? 'right' : 'down'} text-lg`} />
|
<div className={`i-ph:caret-${isModelSettingsCollapsed ? 'right' : 'down'} text-lg`} />
|
||||||
{isModelSettingsCollapsed && <span className="text-xs">{model}</span>}
|
{isModelSettingsCollapsed ? <span className="text-xs">{model}</span> : <span />}
|
||||||
</IconButton>
|
</IconButton>
|
||||||
{chatStarted && <ClientOnly>{() => <ExportChatButton exportChat={exportChat} />}</ClientOnly>}
|
{chatStarted && <ClientOnly>{() => <ExportChatButton exportChat={exportChat} />}</ClientOnly>}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user