mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +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
@@ -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);
|
||||
};
|
||||
Reference in new issue
Block a user