diff --git a/src/renderer/components/hotbar/hotbar-icon.tsx b/src/renderer/components/hotbar/hotbar-icon.tsx index b8447baf80..176abcc996 100644 --- a/src/renderer/components/hotbar/hotbar-icon.tsx +++ b/src/renderer/components/hotbar/hotbar-icon.tsx @@ -74,32 +74,28 @@ export const HotbarIcon = observer(({menuItems = [], size = 40, tooltip, ...prop setMenuOpen(!menuOpen); }; - const renderIcon = () => { - return ( - 0 })}> + {tooltip && {tooltip}} +
{ if (!disabled) { onClick?.(event); } }} > - {material && } - - ); - }; - - return ( -
0 })}> - {tooltip && {tooltip}} -
- {renderIcon()} + + {material && } + {children}