feat(web/context): allow hiding arrow by setting it to false

This commit is contained in:
Luke
2022-09-08 11:11:27 +02:00
parent 336a16baed
commit 473a0f480d
2 changed files with 2 additions and 1 deletions

View File

@@ -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'],
},

View File

@@ -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">