chore: codify React component style
This commit is contained in:
@@ -3,10 +3,10 @@ import type { paths } from "@/shared/api/generated/schema";
|
||||
|
||||
type EventsEndpoint =
|
||||
paths["/api/v1/brokerage-accounts/{accountId}/events"]["get"];
|
||||
export type BrokerageEvent =
|
||||
type BrokerageEvent =
|
||||
EventsEndpoint["responses"][200]["content"]["application/json"]["events"][number];
|
||||
|
||||
export function useBrokerageEvents(accountId: string | undefined) {
|
||||
function useBrokerageEvents(accountId: string | undefined) {
|
||||
return useAuthenticatedQuery({
|
||||
...apiQueryClient.queryOptions(
|
||||
"get",
|
||||
@@ -18,3 +18,5 @@ export function useBrokerageEvents(accountId: string | undefined) {
|
||||
retry: false,
|
||||
});
|
||||
}
|
||||
|
||||
export { type BrokerageEvent, useBrokerageEvents };
|
||||
|
||||
Reference in New Issue
Block a user