Skip to content

Commit

Permalink
chore: fix ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Jul 10, 2024
1 parent 6282e7a commit 2f34dc4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ConnectEmailButton } from "@/components/Account/components/AccountModal/components/EmailAddress"
import { cn } from "@/lib/utils"
import { Tooltip } from "@chakra-ui/react"
import { EnvelopeSimple } from "@phosphor-icons/react"
import useUser from "components/[guild]/hooks/useUser"
import { useAccount } from "wagmi"
import { JoinStepUI } from "./JoinStep"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,18 @@ export const NotificationContent = () => {
domain: "guild.xyz",
allApps: process.env.NODE_ENV !== "production",
}
// initWeb3InboxClient(WEB3_INBOX_INIT_PARAMS)
// const { data } = useWeb3InboxClient()
// const isReady = !!data

const Web3Inbox = () => {
initWeb3InboxClient(WEB3_INBOX_INIT_PARAMS)
const { data } = useWeb3InboxClient()
const isReady = !!data

const { address } = useAccount()
const { data: account } = useWeb3InboxAccount(
address ? `eip155:1:${address}` : undefined
)
const { data: subscription } = useSubscription(
account,
WEB3_INBOX_INIT_PARAMS.domain
)
}
const { address } = useAccount()
const { data: account } = useWeb3InboxAccount(
address ? `eip155:1:${address}` : undefined
)
const { data: subscription } = useSubscription(
account ?? undefined,
WEB3_INBOX_INIT_PARAMS.domain
)

return (
<div>
Expand Down

0 comments on commit 2f34dc4

Please sign in to comment.