mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
feat(phone|resources/bank): useSnackbar for alert
This commit is contained in:
1 parent
1afca13862
commit
47218e63f5
3 files changed
+25
-9
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { IAlertProps } from '../../phone/src/common/typings/alerts';
|
||||
import events from '../utils/events';
|
||||
|
||||
onNet(events.BANK_SEND_TRANSFERS, (transfer: any) => {
|
||||
@@ -30,12 +31,12 @@ onNet(events.BANK_ADD_TRANSFER_SUCCESS, () => {
|
||||
emitNet(events.BANK_FETCH_TRANSACTIONS);
|
||||
});
|
||||
|
||||
onNet(events.BANK_TRANSACTION_ALERT, (bool: boolean) => {
|
||||
onNet(events.BANK_TRANSACTION_ALERT, (result: IAlertProps) => {
|
||||
SendNuiMessage(
|
||||
JSON.stringify({
|
||||
app: 'BANK',
|
||||
method: 'setAlert',
|
||||
data: bool,
|
||||
data: result,
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user