Skip to content

Commit

Permalink
fix ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum committed Oct 24, 2023
1 parent 4edbf1b commit c5493b3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ui/shared/Tabs/TabsMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import type { MenuButton, TabItem } from './types';
import TabCounter from './TabCounter';
import { menuButton } from './utils';

const BUTTON_CLASSNAME = 'button-item';

interface Props {
tabs: Array<TabItem | MenuButton>;
activeTab?: TabItem;
Expand Down Expand Up @@ -62,10 +60,14 @@ const TabsMenu = ({ tabs, tabsCut, isActive, styles, onItemClick, buttonRef, act
isActive={ activeTab ? activeTab.id === tab.id : false }
justifyContent="left"
data-index={ index }
className={ BUTTON_CLASSNAME }
sx={{
'&:hover span': {
color: 'inherit',
},
}}
>
{ typeof tab.title === 'function' ? tab.title() : tab.title }
<TabCounter count={ tab.count } parentClassName={ BUTTON_CLASSNAME }/>
<TabCounter count={ tab.count }/>
</Button>
)) }
</PopoverBody>
Expand Down

0 comments on commit c5493b3

Please sign in to comment.