diff --git a/apps/gallery/package.json b/apps/gallery/package.json
index 3b4602fb1f..585a1a1bb5 100644
--- a/apps/gallery/package.json
+++ b/apps/gallery/package.json
@@ -1,6 +1,6 @@
{
"name": "@apps/gallery",
- "version": "3.0.0-alpha.5",
+ "version": "3.0.0-73ed03f2",
"private": true,
"main": "index.js",
"scripts": {
@@ -9,7 +9,7 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
},
"dependencies": {
- "@web3modal/ui": "3.0.0-alpha.5",
+ "@web3modal/ui": "3.0.0-73ed03f2",
"lit": "2.8.0",
"storybook": "7.4.0"
},
diff --git a/apps/gallery/stories/composites/wui-connect-button.stories.ts b/apps/gallery/stories/composites/wui-connect-button.stories.ts
index 0482714d53..19019e3c7b 100644
--- a/apps/gallery/stories/composites/wui-connect-button.stories.ts
+++ b/apps/gallery/stories/composites/wui-connect-button.stories.ts
@@ -9,18 +9,13 @@ export default {
title: 'Composites/wui-connect-button',
args: {
size: 'md',
- disabled: false,
- loading: false,
- text: 'Connect Wallet'
+ loading: false
},
argTypes: {
size: {
options: ['sm', 'md'],
control: { type: 'select' }
},
- disabled: {
- control: { type: 'boolean' }
- },
loading: {
control: { type: 'boolean' }
}
@@ -28,11 +23,9 @@ export default {
} as Component
export const Default: Component = {
- render: args =>
- html``
+ render: args => html`
+
+ ${args.loading ? 'Connecting...' : 'Connect Wallet'}
+
+ `
}
diff --git a/apps/laboratory/package.json b/apps/laboratory/package.json
index 1e905e4a20..97fd70e426 100644
--- a/apps/laboratory/package.json
+++ b/apps/laboratory/package.json
@@ -1,6 +1,6 @@
{
"name": "@apps/laboratory",
- "version": "3.0.0-alpha.5",
+ "version": "3.0.0-73ed03f2",
"private": true,
"scripts": {
"dev:laboratory": "next dev",
@@ -11,9 +11,9 @@
"@chakra-ui/react": "2.8.0",
"@emotion/react": "11.11.1",
"@emotion/styled": "11.11.0",
- "@sentry/browser": "7.66.0",
- "@sentry/react": "7.66.0",
- "@web3modal/wagmi": "3.0.0-alpha.5",
+ "@sentry/browser": "7.67.0",
+ "@sentry/react": "7.67.0",
+ "@web3modal/wagmi": "3.0.0-73ed03f2",
"framer-motion": "10.16.4",
"next": "13.4.19",
"react-icons": "4.10.1",
diff --git a/apps/laboratory/src/components/ConnectButton.tsx b/apps/laboratory/src/components/ConnectButton.tsx
index ebf437abd9..f9d87c4d15 100644
--- a/apps/laboratory/src/components/ConnectButton.tsx
+++ b/apps/laboratory/src/components/ConnectButton.tsx
@@ -1,13 +1,10 @@
import { Button, useToast } from '@chakra-ui/react'
-import { useWeb3Modal } from '@web3modal/wagmi/react'
-import { useAccount, useDisconnect, useSignMessage } from 'wagmi'
+import { useAccount, useSignMessage } from 'wagmi'
export function ConnectButton() {
const toast = useToast()
- const { isConnected, address } = useAccount()
- const { disconnect } = useDisconnect()
+ const { isConnected } = useAccount()
const { signMessageAsync } = useSignMessage({ message: 'Hello Web3Modal!' })
- const modal = useWeb3Modal()
async function onSignMessage() {
try {
@@ -23,13 +20,10 @@ export function ConnectButton() {
}
}
- return isConnected ? (
+ return (
<>
-
-
-
+
+ {isConnected ? : null}
>
- ) : (
-
)
}
diff --git a/apps/laboratory/src/components/NetworksButton.tsx b/apps/laboratory/src/components/NetworksButton.tsx
index 4d6eed1cdf..3a9dfe7fd2 100644
--- a/apps/laboratory/src/components/NetworksButton.tsx
+++ b/apps/laboratory/src/components/NetworksButton.tsx
@@ -1,12 +1,3 @@
-import { Button } from '@chakra-ui/react'
-import { useWeb3Modal } from '@web3modal/wagmi/react'
-import { useNetwork } from 'wagmi'
-
export function NetworksButton() {
- const { chain } = useNetwork()
- const modal = useWeb3Modal()
-
- return (
-
- )
+ return
}
diff --git a/apps/laboratory/src/pages/index.tsx b/apps/laboratory/src/pages/index.tsx
index 4a8cbb8136..91cefec869 100644
--- a/apps/laboratory/src/pages/index.tsx
+++ b/apps/laboratory/src/pages/index.tsx
@@ -46,7 +46,8 @@ export const wagmiConfig = defaultWagmiConfig({ chains, projectId, appName: 'Web
export const modal = createWeb3Modal({
wagmiConfig,
projectId,
- chains
+ chains,
+ defaultChain: zora
})
export default function HomePage() {
diff --git a/examples/react-wagmi/index.html b/examples/react-wagmi/index.html
index 38475e5b67..5b772285a8 100644
--- a/examples/react-wagmi/index.html
+++ b/examples/react-wagmi/index.html
@@ -7,6 +7,6 @@
-
+