File tree Expand file tree Collapse file tree 2 files changed +10
-15
lines changed
apps/chat/src/components/Chat/TalkTo Expand file tree Collapse file tree 2 files changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ import {
4040
4141import { Modal } from '@/src/components/Common/Modal' ;
4242
43+ import { TabButton } from '../../Buttons/TabButton' ;
4344import { AgentDialogs } from '../../Common/AgentDialogs' ;
4445import { CardType , SuggestedCard , TalkToSlider } from './TalkToSlider' ;
4546
@@ -52,20 +53,12 @@ interface TabButtonProps {
5253 currentTab : MarketplaceTabs ;
5354}
5455
55- function TabButton ( { tab, setTab, currentTab } : TabButtonProps ) {
56+ function AgentsTabButton ( { tab, setTab, currentTab } : TabButtonProps ) {
5657 const { t } = useTranslation ( Translation . Marketplace ) ;
5758 return (
58- < button
59- className = { classNames (
60- 'button flex items-center justify-center text-nowrap rounded border-b-2 border-primary hover:bg-accent-primary-alpha' ,
61- currentTab === tab
62- ? 'border-b-accent-primary bg-accent-primary-alpha'
63- : 'bg-layer-4' ,
64- ) }
65- onClick = { ( ) => setTab ( tab ) }
66- >
59+ < TabButton selected = { currentTab === tab } onClick = { ( ) => setTab ( tab ) } >
6760 { t ( ChangeAgentTabs [ tab ] ) }
68- </ button >
61+ </ TabButton >
6962 ) ;
7063}
7164
@@ -276,12 +269,12 @@ const TalkToModalView = ({
276269 />
277270 </ div >
278271 < div className = "flex gap-2" >
279- < TabButton
272+ < AgentsTabButton
280273 tab = { MarketplaceTabs . MY_WORKSPACE }
281274 setTab = { setTab }
282275 currentTab = { tab }
283276 />
284- < TabButton
277+ < AgentsTabButton
285278 tab = { MarketplaceTabs . HOME }
286279 setTab = { setTab }
287280 currentTab = { tab }
Original file line number Diff line number Diff line change @@ -170,11 +170,13 @@ const SliderModelsGroup = ({
170170 if ( model === SuggestedCard ) {
171171 return (
172172 < div
173- className = "flex size-full cursor-pointer flex-col items-center justify-center gap-2 rounded-md border border-primary hover:bg-layer-3"
173+ className = "flex size-full cursor-pointer flex-col items-center justify-center gap-3 rounded-md border border-primary hover:bg-layer-3"
174174 onClick = { onOpenMarketplaceTab }
175175 key = { SuggestedCard . id }
176176 >
177- < h3 > { t ( "Couldn't find what you need?" ) } </ h3 >
177+ < h3 className = "text-base" >
178+ { t ( "Couldn't find what you need?" ) }
179+ </ h3 >
178180 < SuggestionButton />
179181 </ div >
180182 ) ;
You can’t perform that action at this time.
0 commit comments