mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
feat(bank/nui): tweak(bank/interface): tweaked interface
This commit is contained in:
1 parent
b4a1ba0197
commit
47bf14e9db
2 files changed
+9
-5
No files matched your search
@@ -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 };
|
||||
}
|
||||
};
|
||||
@@ -1,4 +1,4 @@
|
||||
export interface Credentials {
|
||||
export interface IBankCredentials {
|
||||
name: string;
|
||||
balance: number;
|
||||
}
|
||||
@@ -11,4 +11,3 @@ export interface Transfer {
|
||||
transferAmount: number;
|
||||
message: string;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user