packages/explorer-2.0/hooks/index.tsx
Function useWeb3Mutation
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function useWeb3Mutation(mutation, options) {
const client: any = useApolloClient();
const context = useWeb3React();
const [mutate, { data, loading: dataLoading }] = useMutation(mutation, {
...options,
- Create a ticketCreate a ticket
File index.tsx
has 267 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { useState, useEffect, useRef } from "react";
import { useQuery, useMutation, useApolloClient, gql } from "@apollo/client";
import { useWeb3React } from "@web3-react/core";
import { Injected } from "../lib/connectors";
import { isMobile } from "react-device-detect";
- Create a ticketCreate a ticket
Function useInactiveListener
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function useInactiveListener(suppress = false) {
const { active, error, activate } = useWeb3React();
useEffect(() => {
const ethereum = window["ethereum"];
- Create a ticketCreate a ticket