feat(bank/nui): tweak(bank/interface): tweaked interface

This commit is contained in:
Christopher committed 2020-12-12 15:19:01 +01:00
1 parent b4a1ba0197
commit 47bf14e9db
2 files changed
+9 -5

No files matched your search

+8 -3
View File
@@ -1,7 +1,12 @@
import { useRecoilValue } from 'recoil';
import { bankState } from './state';
import { bankState } from './state';
import { IBankCredentials } from '../../../common/interfaces/bank';
export const useCredentials = (): any => {
interface ICredentialsHook {
credentials: IBankCredentials;
}
export const useCredentials = (): ICredentialsHook => {
const credentials = useRecoilValue(bankState.bankCredentials);
return { credentials };
}
};