diff --git a/src/components/AA/MintNft.tsx b/src/components/AA/MintNft.tsx index 0bd2369..3977779 100644 --- a/src/components/AA/MintNft.tsx +++ b/src/components/AA/MintNft.tsx @@ -7,7 +7,6 @@ import { makeStyles } from "@mui/styles" import type React from "react" import { useCallback, useEffect, useState } from "react" import { type Hex, encodeFunctionData, getContract } from "viem" -import { polygonAmoy } from "viem/chains" import { usePublicClient } from "wagmi" import { configInfo as config, showSuccessMessage } from "../../utils" import { ErrorGuard } from "../../utils/ErrorGuard" diff --git a/src/components/Faucet/index.tsx b/src/components/Faucet/index.tsx index 90667ee..cf892bb 100644 --- a/src/components/Faucet/index.tsx +++ b/src/components/Faucet/index.tsx @@ -8,7 +8,6 @@ import { useSmartAccount, useUserOpWait } from "@biconomy/use-aa" -import { polygonAmoy } from "viem/chains" import { configInfo as config, showSuccessMessage } from "../../utils" import { ErrorGuard } from "../../utils/ErrorGuard" import Button from "../Button" diff --git a/src/components/Forward/MintNft.tsx b/src/components/Forward/MintNft.tsx index ee5e0b1..ad62272 100644 --- a/src/components/Forward/MintNft.tsx +++ b/src/components/Forward/MintNft.tsx @@ -13,7 +13,6 @@ import { useUserOpWait } from "@biconomy/use-aa" import { type Hex, encodeFunctionData, getContract } from "viem" -import { polygonAmoy } from "viem/chains" import { usePublicClient } from "wagmi" import { configInfo as config, showSuccessMessage } from "../../utils" import { ErrorGuard } from "../../utils/ErrorGuard" diff --git a/src/components/Modules/CreateBatchSession.tsx b/src/components/Modules/CreateBatchSession.tsx index 5203cb6..5791c14 100644 --- a/src/components/Modules/CreateBatchSession.tsx +++ b/src/components/Modules/CreateBatchSession.tsx @@ -9,7 +9,7 @@ import { } from "@biconomy/use-aa" import { makeStyles } from "@mui/styles" import type React from "react" -import { useEffect } from "react" +import { useEffect, useState } from "react" import type { Hex } from "viem" import { useAccount } from "wagmi" import { configInfo, showSuccessMessage } from "../../utils" @@ -83,7 +83,7 @@ const CreateBatchSession: React.FC = () => { setHasSession(true) showSuccessMessage(`Successful mint`, waitData?.receipt?.transactionHash) } - }, [waitIsSuccess, waitData, setHasSession]) + }, [waitIsSuccess, waitData]) const createSessionHandler = () => mutate({ @@ -138,6 +138,3 @@ const useStyles = makeStyles(() => ({ })) export default CreateBatchSession -function useState(arg0: boolean): [any, any] { - throw new Error("Function not implemented.") -} diff --git a/src/components/Modules/CreateSession.tsx b/src/components/Modules/CreateSession.tsx index 7b7542b..4a59985 100644 --- a/src/components/Modules/CreateSession.tsx +++ b/src/components/Modules/CreateSession.tsx @@ -7,7 +7,7 @@ import { } from "@biconomy/use-aa" import { makeStyles } from "@mui/styles" import type React from "react" -import { useEffect, useReducer, useState } from "react" +import { useEffect, useState } from "react" import { ToastContainer } from "react-toastify" import "react-toastify/dist/ReactToastify.css" import type { Hex } from "viem" diff --git a/src/components/Modules/UseSession.tsx b/src/components/Modules/UseSession.tsx index b7cc028..6223b83 100644 --- a/src/components/Modules/UseSession.tsx +++ b/src/components/Modules/UseSession.tsx @@ -3,7 +3,6 @@ import type React from "react" import { useEffect } from "react" import "react-toastify/dist/ReactToastify.css" import { type Hex, encodeFunctionData, parseAbi } from "viem" -import { polygonAmoy } from "viem/chains" import { configInfo, showSuccessMessage } from "../../utils" import { ErrorGuard } from "../../utils/ErrorGuard" import Button from "../Button" diff --git a/src/utils/useHasSession.ts b/src/utils/useHasSession.ts index 4857088..5689167 100644 --- a/src/utils/useHasSession.ts +++ b/src/utils/useHasSession.ts @@ -1,8 +1,4 @@ -import { - DEFAULT_ERC20_MODULE, - SessionLocalStorage, - type SessionType -} from "@biconomy/account" +import { SessionLocalStorage, type SessionType } from "@biconomy/account" import { useMemo, useState } from "react" import type { Hex } from "viem"