Skip to content

Commit 42a7e53

Browse files
committed
add possibility to use label in DropDownMenu
1 parent 9ca067f commit 42a7e53

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

client/common/DropDownMenu.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ export default function DropDownMenu(props){
4747
className={props.className}
4848
>
4949
<Tooltip>
50-
<TooltipTrigger><i>{props.icon}</i></TooltipTrigger>
50+
<TooltipTrigger>{props.label ? props.label : ''}{props.icon && <i>{props.icon}</i>}</TooltipTrigger>
5151
<TooltipContent root={props.root}>{props.tooltip}</TooltipContent>
52-
<ul role="listbox">
53-
{props.children}
54-
</ul>
52+
<ul role="listbox">
53+
{props.children}
54+
</ul>
5555
</Tooltip>
5656
</WrapperElement>
5757
)

0 commit comments

Comments
 (0)