refactor: normalize view models and share breadcrumbs and titles (WealthLedger/frontend#143)
This commit is contained in:
@@ -30,7 +30,7 @@ function isAccountsAccessFailure(code?: string) {
|
||||
|| isApiErrorCode(code, ApiErrorCode.TbankNotConnected);
|
||||
}
|
||||
|
||||
function useAccountsPageViewModel(): AccountsPageViewModel {
|
||||
function useAccountsPageVm(): AccountsPageViewModel {
|
||||
const accounts = useBrokerageAccounts();
|
||||
useScreenSync({ screen: "accounts" }, [accounts]);
|
||||
|
||||
@@ -73,4 +73,4 @@ function useAccountsPageViewModel(): AccountsPageViewModel {
|
||||
};
|
||||
}
|
||||
|
||||
export { useAccountsPageViewModel };
|
||||
export { useAccountsPageVm };
|
||||
|
||||
Reference in New Issue
Block a user