Skip to content

Commit ced6c7c

Browse files
committed
Fix typescript issues
1 parent b1536cc commit ced6c7c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

components/SubgraphEditor/Editor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ const Editor: React.FC = () => {
181181
const [bottomView, setBottomView] = useState(BottomView.NONE)
182182
const editorRef = useRef<any>(null)
183183

184-
const { evaluate, module } = useCompiler()
184+
const { evaluate } = useCompiler()
185185
const { addLine } = useConsole()
186186
const { account } = useWeb3React()
187187
const name = useENSName(account)
@@ -347,7 +347,7 @@ const Editor: React.FC = () => {
347347
},
348348
]}>
349349
<NewAdapterForm
350-
onAdapterSelection={(fileName: string) => {
350+
onAdapterSelection={(_fileName: string) => {
351351
// setMappingFileName(fileName)
352352
setNewAdapterModalOpen(false)
353353
}}

hooks/gql-compiler.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Collection, Module, LOG_LEVEL } from '@cryptostats/sdk'
33
import { compileTsToJs } from 'utils/ts-compiler'
44
import { getSDK } from 'utils/sdk'
55

6-
import { getDiagnostics } from 'graphql-language-service-interface'
6+
// import { getDiagnostics } from 'graphql-language-service-interface'
77

88
interface CompilerState {
99
code: string | null

hooks/local-subgraphs.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ export const useSubgraph = () => {
102102
}
103103

104104
const publish = async ({
105-
signature,
106-
hash,
107-
signer,
105+
// signature,
106+
// hash,
107+
// signer,
108108
}: { signature?: string; signer?: string | null; hash?: string | null } = {}) => {
109109
// if (!id) {
110110
// throw new Error('ID not set')

0 commit comments

Comments
 (0)