mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 07:26:02 +01:00
feat(client/interface): close functions for input and alert dialogs
This commit is contained in:
@@ -39,6 +39,10 @@ const InputDialog: React.FC = () => {
|
||||
setVisible(true);
|
||||
});
|
||||
|
||||
useNuiEvent('closeInputDialog', () => {
|
||||
setVisible(false);
|
||||
});
|
||||
|
||||
const handleClose = () => {
|
||||
setVisible(false);
|
||||
fetchNui('inputData');
|
||||
|
||||
Reference in New Issue
Block a user