mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +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',
|
title: 'Menu button',
|
||||||
icon: 'bars',
|
icon: 'bars',
|
||||||
menu: 'other_example_menu',
|
menu: 'other_example_menu',
|
||||||
|
arrow: false,
|
||||||
description: 'Takes you to another menu',
|
description: 'Takes you to another menu',
|
||||||
metadata: ['It also has metadata support'],
|
metadata: ['It also has metadata support'],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ const Item: React.FC<{
|
|||||||
</Box>
|
</Box>
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
{(option[1].menu || option[1].arrow) && (
|
{(option[1].menu || option[1].arrow) && option[1].arrow !== false && (
|
||||||
<>
|
<>
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<Box alignSelf="center" justifySelf="center" mr={4} fontSize="xl">
|
<Box alignSelf="center" justifySelf="center" mr={4} fontSize="xl">
|
||||||
|
|||||||
Reference in New Issue
Block a user