mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
fix(bank/nui): interface for useBankModal
This commit is contained in:
1 parent
deeabd9677
commit
ba027b67fd
1 file changed
+6
-1
@@ -1,7 +1,12 @@
|
|||||||
import { useRecoilState } from 'recoil';
|
import { useRecoilState } from 'recoil';
|
||||||
import { bankState } from './state';
|
import { bankState } from './state';
|
||||||
|
|
||||||
export const useBankModal = () => {
|
interface BankModalProps {
|
||||||
|
showBankModal: boolean;
|
||||||
|
setShowBankModal: (show: boolean) => void;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const useBankModal = (): BankModalProps => {
|
||||||
const [ showBankModal, setShowBankModal ] = useRecoilState(bankState.bankModal);
|
const [ showBankModal, setShowBankModal ] = useRecoilState(bankState.bankModal);
|
||||||
return { showBankModal, setShowBankModal };
|
return { showBankModal, setShowBankModal };
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user