Skip to content

Commit

Permalink
refactor(nui/item): hid right arrow icons, when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ardelan869 committed Oct 15, 2024
1 parent 605e54a commit 0dbac65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ game 'gta5'
lua54 'yes'

author 'ardelan869'
version 'chore: bump up version'
version 'refactor(nui/item): hid right arrow icons, when disabled'
description 'FiveM native Rage Menu, made with React'

ui_page 'web/dist/index.html'
Expand Down
4 changes: 3 additions & 1 deletion web/src/components/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ function Item({
{type === 'list' && <List />}
{type === 'slider' && <Slider />}
{type === 'checkbox' && <Checkbox />}
{badges?.right && <Badge name={badges?.right} align="right" />}
{badges?.right && (!disabled || badges.right !== 'arrowright') && (
<Badge name={badges?.right} align="right" />
)}
{disabled && <Badge name="shop_lock" align="right" />}
</section>
</ItemContext.Provider>
Expand Down

0 comments on commit 0dbac65

Please sign in to comment.