chore: codify React component style

This commit is contained in:
2026-08-25 15:33:20 +03:00
parent 268acdf2e1
commit d10e1dd182
65 changed files with 711 additions and 365 deletions
+4 -2
View File
@@ -6,10 +6,10 @@ const portfolioQueryPolicy = {
retry: false,
} as const;
export type Portfolio =
type Portfolio =
paths["/api/v1/brokerage-accounts/{accountId}/portfolio"]["get"]["responses"][200]["content"]["application/json"];
export function usePortfolio(accountId: string | undefined) {
function usePortfolio(accountId: string | undefined) {
return useAuthenticatedQuery({
...apiQueryClient.queryOptions(
"get",
@@ -20,3 +20,5 @@ export function usePortfolio(accountId: string | undefined) {
...portfolioQueryPolicy,
});
}
export { type Portfolio, usePortfolio };