feat(bank): new states and hooks

This commit is contained in:
chip committed 2020-10-20 15:45:35 +02:00
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;
}