mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
feat(bank/nui): tweak(bank/interface): tweaked interface
This commit is contained in:
1 parent
b4a1ba0197
commit
47bf14e9db
2 files changed
+8
-4
No files matched your search
@@ -1,7 +1,12 @@
|
|||||||
import { useRecoilValue } from 'recoil';
|
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);
|
const credentials = useRecoilValue(bankState.bankCredentials);
|
||||||
return { credentials };
|
return { credentials };
|
||||||
}
|
};
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
export interface Credentials {
|
export interface IBankCredentials {
|
||||||
name: string;
|
name: string;
|
||||||
balance: number;
|
balance: number;
|
||||||
}
|
}
|
||||||
@@ -11,4 +11,3 @@ export interface Transfer {
|
|||||||
transferAmount: number;
|
transferAmount: number;
|
||||||
message: string;
|
message: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user