mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
fix(bank): update all events
This commit is contained in:
1 parent
5654e1f46f
commit
de10ce92b2
3 files changed
+8
-4
No files matched your search
@@ -7,6 +7,7 @@ import { useBankNotification } from './useBankNotification';
|
||||
import { IAlert, useSnackbar } from '../../../ui/hooks/useSnackbar';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { BankEvents } from '../../../../../typings/bank';
|
||||
import { PhoneEvents } from '../../../../../typings/phone';
|
||||
|
||||
export const useBankService = () => {
|
||||
const setTransaction = useSetRecoilState(bankState.transactions);
|
||||
@@ -24,7 +25,7 @@ export const useBankService = () => {
|
||||
|
||||
useNuiEvent('BANK', BankEvents.SEND_TRANSFERS, setTransaction);
|
||||
useNuiEvent('BANK', BankEvents.SEND_CREDENTIALS, setCredentials);
|
||||
useNuiEvent('BANK', 'setAlert', handleAddAlert);
|
||||
useNuiEvent('BANK', 'setNotification', setNotification);
|
||||
useNuiEvent('BANK', PhoneEvents.SET_ALERT, handleAddAlert);
|
||||
useNuiEvent('BANK', PhoneEvents.SET_NOTIFICATION, setNotification);
|
||||
return { useTransactions, useCredentials, useBankNotification };
|
||||
};
|
||||
Reference in new issue
Block a user