File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ interface Props {
22
22
iconSize : number ;
23
23
}
24
24
25
- export const CreateNewChat = ( { iconSize } : Props ) => {
25
+ export const CreateNewConversation = ( { iconSize } : Props ) => {
26
26
const { t } = useTranslation ( Translation . Header ) ;
27
27
const dispatch = useAppDispatch ( ) ;
28
28
@@ -54,24 +54,22 @@ export const CreateNewChat = ({ iconSize }: Props) => {
54
54
>
55
55
{ ! areConversationsLoaded || isActiveNewConversationRequest ? (
56
56
< Spinner
57
- size = { iconSize + 6 }
57
+ size = { iconSize + 22 }
58
58
className = "cursor-pointer text-secondary md:px-2"
59
59
/>
60
60
) : (
61
61
< div
62
62
className = { classNames (
63
63
'flex items-center justify-center rounded border border-transparent bg-accent-secondary-alpha p-[2px] md:px-[10px]' ,
64
- messageIsStreaming || isActiveNewConversationRequest
64
+ messageIsStreaming
65
65
? 'cursor-not-allowed'
66
66
: 'cursor-pointer hover:border-accent-secondary' ,
67
67
) }
68
68
>
69
69
< IconPlus
70
70
className = { classNames (
71
71
'text-accent-secondary' ,
72
- messageIsStreaming || isActiveNewConversationRequest
73
- ? 'cursor-not-allowed'
74
- : 'cursor-pointer' ,
72
+ messageIsStreaming ? 'cursor-not-allowed' : 'cursor-pointer' ,
75
73
) }
76
74
size = { iconSize }
77
75
/>
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import MoveLeftIcon from '../../../public/images/icons/move-left.svg';
25
25
import MoveRightIcon from '../../../public/images/icons/move-right.svg' ;
26
26
import Tooltip from '../Common/Tooltip' ;
27
27
import { SettingDialog } from '../Settings/SettingDialog' ;
28
- import { CreateNewChat } from './CreateNewChat ' ;
28
+ import { CreateNewConversation } from './CreateNewConversation ' ;
29
29
import { User } from './User/User' ;
30
30
31
31
import { Inversify } from '@epam/ai-dial-modulify-ui' ;
@@ -180,7 +180,7 @@ const Header = Inversify.register('Header', () => {
180
180
</ Tooltip >
181
181
) }
182
182
{ ! enabledFeatures . has ( Feature . HideNewConversation ) && (
183
- < CreateNewChat iconSize = { headerIconSize } />
183
+ < CreateNewConversation iconSize = { headerIconSize } />
184
184
) }
185
185
< div className = "flex grow justify-between" >
186
186
< span
You can’t perform that action at this time.
0 commit comments