mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-19 02:28:33 +00:00
refactor(web/menu): radial menu item removing and refreshing
This commit is contained in:
1 parent
8c560b5f87
commit
a44142333e
2 files changed
+49
-12
No files matched your search
@@ -68,6 +68,10 @@ const RadialMenu: React.FC = () => {
|
||||
setVisible(true);
|
||||
});
|
||||
|
||||
useNuiEvent('refreshItems', (data: MenuItem[]) => {
|
||||
setMenu({ ...menu, items: data });
|
||||
});
|
||||
|
||||
const handleClick = (index: number) => {
|
||||
fetchNui('radialClick', index);
|
||||
// TODO: shouldClose
|
||||
|
||||
Reference in new issue
Block a user