mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
feat(bank): new states and hooks
This commit is contained in:
1 parent
bc017f8629
commit
ad3cd5f19a
5 files changed
+69
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
|
||||
import { bankState } from './state';
|
||||
import { useTransactions } from './useTransactions'
|
||||
import { useSetRecoilState } from 'recoil'
|
||||
|
||||
export const useBankService = () => {
|
||||
const setTransaction = useSetRecoilState(bankState.transactions)
|
||||
useNuiEvent('BANK', 'setTransaction', setTransaction);
|
||||
return useTransactions;
|
||||
}
|
||||
Reference in new issue
Block a user