feat(bank/nui): state and hooks for alert and notificatioln

This commit is contained in:
chip committed 2020-11-04 16:11:12 +01:00
1 parent 3d865dd887
commit e6cee7b414
4 files changed
+30 -7

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
import { useRecoilState } from 'recoil';
import { bankState } from './state';
export const useBankAlert = () => {
const [ bankAlert, setBankAlert ] = useRecoilState(bankState.bankAlert);
export const useBankAlert = (): any => {
const [ bankAlert, setBankAlert ] = useRecoilState(bankState.transferSuccessful);
return { bankAlert, setBankAlert };
}