Skip to content

Commit

Permalink
Add Divider component to TooltipTab.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Sep 18, 2024
1 parent 748a159 commit 6784f3b
Showing 1 changed file with 19 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
Divider,
Tab,
Tooltip,
} from "@mui/joy";
Expand Down Expand Up @@ -32,22 +33,25 @@ const TooltipTab = ({tabName, Icon, onTabButtonClick}: TooltipTabProps) => {
};

return (
<Tooltip
arrow={true}
key={tabName}
placement={"right"}
title={TAB_DISPLAY_NAMES[tabName]}
>
<Tab
className={"sidebar-tab-button"}
color={"neutral"}
indicatorPlacement={"left"}
slotProps={{root: {onClick: handleClick}}}
value={tabName}
<>
<Tooltip
arrow={true}
key={tabName}
placement={"right"}
title={TAB_DISPLAY_NAMES[tabName]}
>
<Icon className={"sidebar-tab-button-icon"}/>
</Tab>
</Tooltip>
<Tab
className={"sidebar-tab-button"}
color={"neutral"}
indicatorPlacement={"left"}
slotProps={{root: {onClick: handleClick}}}
value={tabName}
>
<Icon className={"sidebar-tab-button-icon"}/>
</Tab>
</Tooltip>
<Divider/>
</>
);
};

Expand Down

0 comments on commit 6784f3b

Please sign in to comment.