fix(bank/nui): interface for useBankModal

This commit is contained in:
Christopher committed 2021-01-14 19:37:46 +01:00
1 parent deeabd9677
commit ba027b67fd
1 file changed
+6 -1
+6 -1
View File
@@ -1,7 +1,12 @@
import { useRecoilState } from 'recoil';
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);
return { showBankModal, setShowBankModal };
}