chore: codify React component style
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user