feat(phone|resources/bank): useSnackbar for alert

This commit is contained in:
Christopher committed 2021-02-26 12:48:27 +01:00
1 parent 1afca13862
commit 47218e63f5
3 files changed
+25 -9

No files matched your search

+3 -2
View File
@@ -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,
})
);
});