mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
fix(web/menu): don't render no label buttons
This commit is contained in:
@@ -190,13 +190,17 @@ const ListMenu: React.FC = () => {
|
||||
<FocusTrap active={visible}>
|
||||
<Stack direction="column" p={2} overflowY="scroll">
|
||||
{menu.items.map((item, index) => (
|
||||
<ListItem
|
||||
index={index}
|
||||
item={item}
|
||||
scrollIndex={indexStates[index]}
|
||||
ref={listRefs}
|
||||
key={`menu-item-${index}`}
|
||||
/>
|
||||
<>
|
||||
{item.label && (
|
||||
<ListItem
|
||||
index={index}
|
||||
item={item}
|
||||
scrollIndex={indexStates[index]}
|
||||
ref={listRefs}
|
||||
key={`menu-item-${index}`}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
))}
|
||||
</Stack>
|
||||
</FocusTrap>
|
||||
|
||||
Reference in New Issue
Block a user