mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
feat(web/context): allow hiding arrow by setting it to false
This commit is contained in:
@@ -20,6 +20,7 @@ export const debugContext = () => {
|
||||
title: 'Menu button',
|
||||
icon: 'bars',
|
||||
menu: 'other_example_menu',
|
||||
arrow: false,
|
||||
description: 'Takes you to another menu',
|
||||
metadata: ['It also has metadata support'],
|
||||
},
|
||||
|
||||
@@ -71,7 +71,7 @@ const Item: React.FC<{
|
||||
</Box>
|
||||
)}
|
||||
</Box>
|
||||
{(option[1].menu || option[1].arrow) && (
|
||||
{(option[1].menu || option[1].arrow) && option[1].arrow !== false && (
|
||||
<>
|
||||
<Spacer />
|
||||
<Box alignSelf="center" justifySelf="center" mr={4} fontSize="xl">
|
||||
|
||||
Reference in New Issue
Block a user