mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
clean up bank hook
This commit is contained in:
1 parent
f0c5e5101e
commit
9d2aeddd4b
7 files changed
+15
-19
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { useRecoilValue } from 'recoil';
|
||||
import { ITransactions } from '../../../../../typings/bank';
|
||||
import { bankState } from './state';
|
||||
|
||||
export const useTransactions = () => {
|
||||
const transactionList = useRecoilValue(bankState.transactions);
|
||||
return { transactionList };
|
||||
return useRecoilValue<ITransactions[]>(bankState.transactions);
|
||||
};
|
||||
Reference in new issue
Block a user