mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +01:00
feat(web/context): allow manually sorting the options
In order to have the options in the same order as defined, you need to not use keys, instead a normal index table and define the title for the option
This commit is contained in:
@@ -68,7 +68,7 @@ const Item: React.FC<{
|
||||
<Box>
|
||||
<Box paddingBottom={option[1].description ? 1 : 0}>
|
||||
<Text w="100%" fontWeight="medium">
|
||||
{option[0]}
|
||||
{option[1].title ? option[1].title : option[0]}
|
||||
</Text>
|
||||
</Box>
|
||||
{option[1].description && (
|
||||
|
||||
Reference in New Issue
Block a user