Skip to content

Commit

Permalink
chore: build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joepegler committed Jul 23, 2024
1 parent 6cf69fc commit c5f5dbc
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/components/AA/MintNft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion src/components/Faucet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion src/components/Forward/MintNft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 2 additions & 5 deletions src/components/Modules/CreateBatchSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -83,7 +83,7 @@ const CreateBatchSession: React.FC = () => {
setHasSession(true)
showSuccessMessage(`Successful mint`, waitData?.receipt?.transactionHash)
}
}, [waitIsSuccess, waitData, setHasSession])
}, [waitIsSuccess, waitData])

const createSessionHandler = () =>
mutate({
Expand Down Expand Up @@ -138,6 +138,3 @@ const useStyles = makeStyles(() => ({
}))

export default CreateBatchSession
function useState<T>(arg0: boolean): [any, any] {
throw new Error("Function not implemented.")
}
2 changes: 1 addition & 1 deletion src/components/Modules/CreateSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion src/components/Modules/UseSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 1 addition & 5 deletions src/utils/useHasSession.ts
Original file line number Diff line number Diff line change
@@ -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"

Expand Down

0 comments on commit c5f5dbc

Please sign in to comment.