clean up bank hook

This commit is contained in:
Christopher committed 2021-03-15 10:13:25 +01:00
1 parent f0c5e5101e
commit 9d2aeddd4b
7 files changed
+15 -19

No files matched your search

@@ -3,11 +3,6 @@ import { useRecoilValue } from 'recoil';
import { Transfer } from '../../../../../typings/bank';
import { bankState } from './state';
interface IBankNotification {
notification: Transfer | null;
}
export const useBankNotification = (): IBankNotification => {
const notification = useRecoilValue<Transfer | null>(bankState.notification);
return { notification };
export const useBankNotification = () => {
return useRecoilValue<Transfer | null>(bankState.notification);
};