diff --git a/src/lib/components/json-schema/common/AttachSchemaCard.tsx b/src/lib/components/json-schema/AttachSchemaCard.tsx
similarity index 86%
rename from src/lib/components/json-schema/common/AttachSchemaCard.tsx
rename to src/lib/components/json-schema/AttachSchemaCard.tsx
index 8ccd5e759..c7f73d776 100644
--- a/src/lib/components/json-schema/common/AttachSchemaCard.tsx
+++ b/src/lib/components/json-schema/AttachSchemaCard.tsx
@@ -53,15 +53,9 @@ export const AttachSchemaCard = ({
-
- }
- />
+
= ({
);
return (
-
diff --git a/src/lib/pages/upload/components/UploadSchema.tsx b/src/lib/pages/upload/components/UploadSchema.tsx
index 83d605cac..9a3e6a503 100644
--- a/src/lib/pages/upload/components/UploadSchema.tsx
+++ b/src/lib/pages/upload/components/UploadSchema.tsx
@@ -1,7 +1,6 @@
import { useDisclosure } from "@chakra-ui/react";
-import { AttachSchemaCard } from "lib/components/json-schema/common/AttachSchemaCard";
-import { JsonSchemaDrawer } from "lib/components/json-schema/common/JsonSchemaDrawer";
+import { AttachSchemaCard, JsonSchemaDrawer } from "lib/components/json-schema";
import type { CodeSchema } from "lib/stores/schema";
import type { Option } from "lib/types";
diff --git a/src/lib/services/codeService.ts b/src/lib/services/codeService.ts
index 39ae202d4..255800d4a 100644
--- a/src/lib/services/codeService.ts
+++ b/src/lib/services/codeService.ts
@@ -1,5 +1,5 @@
/* eslint-disable sonarjs/no-identical-functions */
-import type { UseQueryResult } from "@tanstack/react-query";
+import type { UseQueryOptions, UseQueryResult } from "@tanstack/react-query";
import { useQuery } from "@tanstack/react-query";
import { useCallback } from "react";
@@ -273,11 +273,11 @@ export const useCodeListCountByWalletAddress = (
);
};
-export type LcdCodeInfoSuccessCallback = (data: CodeIdInfoResponse) => void;
+export type LCDCodeInfoSuccessCallback = (data: CodeIdInfoResponse) => void;
-export const useLcdCodeInfo = (
+export const useLCDCodeInfo = (
codeId: string,
- options?: Parameters>[2]
+ options?: Omit, "queryKey">
): UseQueryResult => {
const lcdEndpoint = useBaseApiRoute("rest");
const queryFn = async () => getCodeIdInfo(lcdEndpoint, codeId);