mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
fix bank enums
This commit is contained in:
1 parent
de10ce92b2
commit
98efed4e64
3 files changed
+6
-4
No files matched your search
@@ -25,7 +25,7 @@ export const useBankService = () => {
|
|||||||
|
|
||||||
useNuiEvent('BANK', BankEvents.SEND_TRANSFERS, setTransaction);
|
useNuiEvent('BANK', BankEvents.SEND_TRANSFERS, setTransaction);
|
||||||
useNuiEvent('BANK', BankEvents.SEND_CREDENTIALS, setCredentials);
|
useNuiEvent('BANK', BankEvents.SEND_CREDENTIALS, setCredentials);
|
||||||
useNuiEvent('BANK', PhoneEvents.SET_ALERT, handleAddAlert);
|
useNuiEvent('BANK', BankEvents.SEND_ALERT, handleAddAlert);
|
||||||
useNuiEvent('BANK', PhoneEvents.SET_NOTIFICATION, setNotification);
|
useNuiEvent('BANK', BankEvents.SEND_NOTIFICATION, setNotification);
|
||||||
return { useTransactions, useCredentials, useBankNotification };
|
return { useTransactions, useCredentials, useBankNotification };
|
||||||
};
|
};
|
||||||
@@ -36,7 +36,7 @@ onNet(BankEvents.TRANSACTION_ALERT, (result: IAlertProps) => {
|
|||||||
SendNuiMessage(
|
SendNuiMessage(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
app: 'BANK',
|
app: 'BANK',
|
||||||
method: PhoneEvents.SET_ALERT,
|
method: BankEvents.SEND_ALERT,
|
||||||
data: result,
|
data: result,
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
@@ -46,7 +46,7 @@ onNet(BankEvents.TRANSACTION_NOTIFICATION, (transfer: any) => {
|
|||||||
SendNuiMessage(
|
SendNuiMessage(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
app: 'BANK',
|
app: 'BANK',
|
||||||
method: PhoneEvents.SET_NOTIFICATION,
|
method: BankEvents.SEND_NOTIFICATION,
|
||||||
data: transfer,
|
data: transfer,
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -27,4 +27,6 @@ export enum BankEvents {
|
|||||||
TRANSACTION_NOTIFICATION = 'npwd:bankTransactionNotification',
|
TRANSACTION_NOTIFICATION = 'npwd:bankTransactionNotification',
|
||||||
SEND_CREDENTIALS = 'npwd:sendBankCredentials',
|
SEND_CREDENTIALS = 'npwd:sendBankCredentials',
|
||||||
GET_CREDENTIALS = 'npwd:getBankCredentials',
|
GET_CREDENTIALS = 'npwd:getBankCredentials',
|
||||||
|
SEND_ALERT = 'npwd:sendBankAlert',
|
||||||
|
SEND_NOTIFICATION = 'npwd:sendBankNotification',
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user