mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
feat(bank/nui): state and hooks for alert and notificatioln
This commit is contained in:
1 parent
3d865dd887
commit
e6cee7b414
4 files changed
+30
-7
No files matched your search
@@ -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 };
|
||||
}
|
||||
Reference in new issue
Block a user