Skip to content

Commit

Permalink
refactor(template): remove unused hook
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev committed Dec 3, 2024
1 parent aedf03d commit 754321a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion apps/deploy-web/src/queries/queryKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export class QueryKeys {
static getBlockKey = (id: string) => ["BLOCK", id];
static getBalancesKey = (address?: string) => (address ? ["BALANCES", address] : []);
static getTemplatesKey = () => ["TEMPLATES"];
static getTemplateKey = (id: string) => ["TEMPLATES", id];
static getProviderAttributesSchema = () => ["PROVIDER_ATTRIBUTES_SCHEMA"];
static getDepositParamsKey = () => ["DEPOSIT_PARAMS"];
static getGpuModelsKey = () => ["GPU_MODELS"];
Expand Down
4 changes: 0 additions & 4 deletions apps/deploy-web/src/queries/useTemplateQuery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,3 @@ export function useTemplates(options = {}) {
refetchOnReconnect: false
});
}

export function useTemplateById(id: string, options: UseQueryOptions<TemplateOutput, Error, any, QueryKey> = {}): UseQueryResult<TemplateOutput> {
return useQuery(QueryKeys.getTemplateKey(id), () => services.template.findById(id), options);
}

0 comments on commit 754321a

Please sign in to comment.