diff --git a/demo/react-app/package-lock.json b/demo/react-app/package-lock.json index 6888e4d39..b40eb439b 100644 --- a/demo/react-app/package-lock.json +++ b/demo/react-app/package-lock.json @@ -60,15 +60,15 @@ }, "../../packages/base": { "name": "@web3auth/base", - "version": "8.12.4", + "version": "9.3.0", "license": "ISC", "dependencies": { - "@toruslabs/base-controllers": "^6.0.2", + "@toruslabs/base-controllers": "^6.2.2", "@toruslabs/constants": "^14.0.0", "@toruslabs/http-helpers": "^7.0.0", - "@web3auth/auth": "^9.1.3", + "@web3auth/auth": "^9.4.1", "jwt-decode": "^4.0.0", - "loglevel": "^1.9.1", + "loglevel": "^1.9.2", "ts-custom-error": "^3.3.1" }, "engines": { @@ -81,24 +81,24 @@ }, "../../packages/modal": { "name": "@web3auth/modal", - "version": "8.12.7", + "version": "9.3.1", "license": "ISC", "dependencies": { - "@web3auth/base": "^8.12.4", - "@web3auth/base-provider": "^8.12.4", - "@web3auth/no-modal": "^8.12.4", - "@web3auth/openlogin-adapter": "^8.12.4", - "@web3auth/ui": "^8.12.7", - "lodash.clonedeep": "^4.5.0", - "lodash.merge": "^4.6.2" + "@web3auth/auth-adapter": "^9.3.0", + "@web3auth/base": "^9.3.0", + "@web3auth/base-provider": "^9.3.0", + "@web3auth/no-modal": "^9.3.1", + "@web3auth/ui": "^9.3.1", + "deepmerge": "^4.3.1" }, "devDependencies": { "@svgr/webpack": "^8.1.0", "@toruslabs/isomorphic-style-loader": "^5.3.3", - "@toruslabs/openlogin-utils": "^8.2.1", - "@web3auth/wallet-connect-v2-adapter": "^8.12.4", + "@web3auth/account-abstraction-provider": "^9.3.1", + "@web3auth/auth": "^9.4.1", + "@web3auth/wallet-connect-v2-adapter": "^9.3.0", "css-loader": "^7.1.2", - "postcss-prefix-selector": "^1.16.1", + "postcss-prefix-selector": "^2.1.0", "style-loader": "^4.0.0", "url-loader": "^4.1.1" }, @@ -108,7 +108,7 @@ }, "peerDependencies": { "@babel/runtime": "^7.x", - "@web3auth/wallet-connect-v2-adapter": "^8.x" + "@web3auth/wallet-connect-v2-adapter": "^9.x" }, "peerDependenciesMeta": { "@web3auth/wallet-connect-v2-adapter": { @@ -118,17 +118,17 @@ }, "../../packages/plugins/wallet-services-plugin": { "name": "@web3auth/wallet-services-plugin", - "version": "8.12.5", + "version": "9.3.1", "license": "ISC", "dependencies": { - "@toruslabs/openlogin-jrpc": "^8.3.0", - "@web3auth/base": "^8.12.4", - "@web3auth/no-modal": "^8.12.4", - "@web3auth/ws-embed": "^2.0.23", - "loglevel": "^1.9.1" + "@web3auth/auth": "^9.4.1", + "@web3auth/base": "^9.3.0", + "@web3auth/no-modal": "^9.3.1", + "@web3auth/ws-embed": "^3.1.0", + "loglevel": "^1.9.2" }, "devDependencies": { - "@toruslabs/ethereum-controllers": "^6.0.2" + "@toruslabs/ethereum-controllers": "^6.2.2" }, "engines": { "node": ">=18.x", @@ -140,21 +140,18 @@ }, "../../packages/providers/account-abstraction-provider": { "name": "@web3auth/account-abstraction-provider", - "version": "8.5.0-alpha.3", + "version": "9.3.1", "license": "ISC", "dependencies": { - "@ethereumjs/common": "^4.3.0", - "@ethereumjs/tx": "^5.3.0", - "@ethereumjs/util": "^9.0.3", - "@metamask/eth-sig-util": "^7.0.2", - "@metamask/rpc-errors": "^6.2.1", - "@toruslabs/base-controllers": "^5.6.0", - "@toruslabs/openlogin-jrpc": "^8.1.1", - "@web3auth/base": "^8.5.0-alpha.3", - "@web3auth/base-provider": "^8.5.0-alpha.3", - "@web3auth/ethereum-provider": "^8.5.0-alpha.3", - "permissionless": "^0.1.29", - "viem": "^2.10.11" + "@ethereumjs/util": "^9.1.0", + "@toruslabs/base-controllers": "^6.2.2", + "@web3auth/auth": "^9.4.1", + "@web3auth/base": "^9.3.0", + "@web3auth/base-provider": "^9.3.0", + "@web3auth/ethereum-provider": "^9.3.0", + "ethers": "^6.13.4", + "permissionless": "^0.2.13", + "viem": "^2.21.36" }, "engines": { "node": ">=18.x", @@ -166,28 +163,26 @@ }, "../../packages/providers/ethereum-provider": { "name": "@web3auth/ethereum-provider", - "version": "8.12.4", + "version": "9.3.0", "license": "ISC", "dependencies": { - "@ethereumjs/common": "^4.3.0", - "@ethereumjs/tx": "^5.3.0", - "@ethereumjs/util": "^9.0.3", - "@metamask/eth-sig-util": "7.0.2", - "@toruslabs/base-controllers": "^5.10.0", - "@toruslabs/http-helpers": "^6.1.1", - "@toruslabs/openlogin-jrpc": "^8.3.0", - "@web3auth/base": "^8.12.4", - "@web3auth/base-provider": "^8.12.4", + "@ethereumjs/util": "^9.1.0", + "@toruslabs/base-controllers": "^6.2.2", + "@toruslabs/eccrypto": "^5.0.4", + "@toruslabs/http-helpers": "^7.0.0", + "@web3auth/auth": "^9.4.1", + "@web3auth/base": "^9.3.0", + "@web3auth/base-provider": "^9.3.0", "assert": "^2.1.0", "bignumber.js": "^9.1.2", "bn.js": "^5.2.1", - "ethers": "^6.13.2", + "ethers": "^6.13.4", "jsonschema": "^1.4.1" }, "devDependencies": { - "@types/bn.js": "^5.1.5", + "@types/bn.js": "^5.1.6", "@types/json-rpc-random-id": "^1.0.3", - "@walletconnect/types": "^2.15.1" + "@walletconnect/types": "^2.17.1" }, "engines": { "node": ">=18.x", @@ -199,22 +194,21 @@ }, "../../packages/providers/solana-provider": { "name": "@web3auth/solana-provider", - "version": "8.12.4", + "version": "9.3.0", "license": "ISC", "dependencies": { - "@toruslabs/base-controllers": "^6.0.2", - "@toruslabs/openlogin-ed25519": "^8.1.0", + "@toruslabs/base-controllers": "^6.2.2", "@toruslabs/tweetnacl-js": "^1.0.4", - "@web3auth/base": "^8.12.4", - "@web3auth/base-provider": "^8.12.4", + "@web3auth/auth": "^9.4.1", + "@web3auth/base": "^9.3.0", + "@web3auth/base-provider": "^9.3.0", "bn.js": "^5.2.1", "bs58": "^5.0.0", "json-rpc-random-id": "^1.0.1" }, "devDependencies": { - "@solana/web3.js": "^1.95.3", - "@solflare-wallet/sdk": "^1.4.2", - "@types/bn.js": "^5.1.5", + "@solana/web3.js": "^1.95.4", + "@types/bn.js": "^5.1.6", "@types/bs58": "^4.0.4", "@types/json-rpc-random-id": "^1.0.3" }, diff --git a/demo/vue-app-new/package-lock.json b/demo/vue-app-new/package-lock.json index b068576a0..e7f341b24 100644 --- a/demo/vue-app-new/package-lock.json +++ b/demo/vue-app-new/package-lock.json @@ -56,12 +56,12 @@ }, "../../packages/adapters/auth-adapter": { "name": "@web3auth/auth-adapter", - "version": "9.2.3", + "version": "9.3.0", "license": "ISC", "dependencies": { "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.2.3", - "@web3auth/base-provider": "^9.2.3", + "@web3auth/base": "^9.3.0", + "@web3auth/base-provider": "^9.3.0", "deepmerge": "^4.3.1" }, "engines": { @@ -74,11 +74,11 @@ }, "../../packages/adapters/base-evm-adapter": { "name": "@web3auth/base-evm-adapter", - "version": "9.2.3", + "version": "9.3.0", "license": "ISC", "dependencies": { "@toruslabs/base-controllers": "^6.2.2", - "@web3auth/base": "^9.2.3" + "@web3auth/base": "^9.3.0" }, "engines": { "node": ">=18.x", @@ -90,11 +90,11 @@ }, "../../packages/adapters/base-solana-adapter": { "name": "@web3auth/base-solana-adapter", - "version": "9.2.3", + "version": "9.3.0", "license": "ISC", "dependencies": { "@toruslabs/base-controllers": "^6.2.2", - "@web3auth/base": "^9.2.3", + "@web3auth/base": "^9.3.0", "bs58": "^5.0.0" }, "devDependencies": { @@ -110,11 +110,11 @@ }, "../../packages/adapters/coinbase-adapter": { "name": "@web3auth/coinbase-adapter", - "version": "9.2.3", + "version": "9.3.0", "license": "ISC", "dependencies": { - "@web3auth/base": "^9.2.3", - "@web3auth/base-evm-adapter": "^9.2.3" + "@web3auth/base": "^9.3.0", + "@web3auth/base-evm-adapter": "^9.3.0" }, "devDependencies": { "@coinbase/wallet-sdk": "^4.1.0" @@ -130,12 +130,12 @@ }, "../../packages/adapters/default-evm-adapter": { "name": "@web3auth/default-evm-adapter", - "version": "9.2.3", + "version": "9.3.0", "license": "ISC", "dependencies": { - "@web3auth/base": "^9.2.3", - "@web3auth/base-evm-adapter": "^9.2.3", - "@web3auth/wallet-connect-v2-adapter": "^9.2.3", + "@web3auth/base": "^9.3.0", + "@web3auth/base-evm-adapter": "^9.3.0", + "@web3auth/wallet-connect-v2-adapter": "^9.3.0", "mipd": "^0.0.7" }, "engines": { @@ -148,19 +148,19 @@ }, "../../packages/adapters/default-solana-adapter": { "name": "@web3auth/default-solana-adapter", - "version": "9.2.3", + "version": "9.3.0", "license": "ISC", "dependencies": { "@solana/wallet-standard-features": "^1.2.0", - "@solana/web3.js": "^1.95.3", + "@solana/web3.js": "^1.95.4", "@wallet-standard/app": "^1.0.1", "@wallet-standard/base": "^1.0.1", "@wallet-standard/features": "^1.0.3", "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.2.3", - "@web3auth/base-solana-adapter": "^9.2.3", - "@web3auth/solana-provider": "^9.2.3", - "@web3auth/wallet-connect-v2-adapter": "^9.2.3", + "@web3auth/base": "^9.3.0", + "@web3auth/base-solana-adapter": "^9.3.0", + "@web3auth/solana-provider": "^9.3.0", + "@web3auth/wallet-connect-v2-adapter": "^9.3.0", "bn.js": "^5.2.1" }, "engines": { @@ -173,12 +173,12 @@ }, "../../packages/adapters/torus-evm-adapter": { "name": "@web3auth/torus-evm-adapter", - "version": "9.2.3", + "version": "9.3.0", "license": "ISC", "dependencies": { "@toruslabs/torus-embed": "^5.0.0", - "@web3auth/base": "^9.2.3", - "@web3auth/base-evm-adapter": "^9.2.3" + "@web3auth/base": "^9.3.0", + "@web3auth/base-evm-adapter": "^9.3.0" }, "engines": { "node": ">=18.x", @@ -190,14 +190,14 @@ }, "../../packages/adapters/torus-solana-adapter": { "name": "@web3auth/torus-solana-adapter", - "version": "9.2.3", + "version": "9.3.0", "license": "ISC", "dependencies": { "@toruslabs/solana-embed": "^2.1.0", - "@web3auth/base": "^9.2.3", - "@web3auth/base-provider": "^9.2.3", - "@web3auth/base-solana-adapter": "^9.2.3", - "@web3auth/solana-provider": "^9.2.3" + "@web3auth/base": "^9.3.0", + "@web3auth/base-provider": "^9.3.0", + "@web3auth/base-solana-adapter": "^9.3.0", + "@web3auth/solana-provider": "^9.3.0" }, "engines": { "node": ">=18.x", @@ -210,19 +210,19 @@ }, "../../packages/adapters/wallet-connect-v2-adapter": { "name": "@web3auth/wallet-connect-v2-adapter", - "version": "9.2.3", + "version": "9.3.0", "license": "ISC", "dependencies": { - "@solana/web3.js": "^1.95.3", + "@solana/web3.js": "^1.95.4", "@toruslabs/base-controllers": "^6.2.2", - "@walletconnect/sign-client": "^2.17.0", - "@walletconnect/types": "^2.17.0", - "@walletconnect/utils": "^2.17.0", + "@walletconnect/sign-client": "^2.17.1", + "@walletconnect/types": "^2.17.1", + "@walletconnect/utils": "^2.17.1", "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.2.3", - "@web3auth/base-provider": "^9.2.3", - "@web3auth/ethereum-provider": "^9.2.3", - "@web3auth/solana-provider": "^9.2.3", + "@web3auth/base": "^9.3.0", + "@web3auth/base-provider": "^9.3.0", + "@web3auth/ethereum-provider": "^9.3.0", + "@web3auth/solana-provider": "^9.3.0", "bs58": "^5.0.0", "deepmerge": "^4.3.1" }, @@ -239,7 +239,7 @@ }, "../../packages/base": { "name": "@web3auth/base", - "version": "9.2.3", + "version": "9.3.0", "license": "ISC", "dependencies": { "@toruslabs/base-controllers": "^6.2.2", @@ -260,15 +260,15 @@ }, "../../packages/composables/modal-vue-composables": { "name": "@web3auth/modal-vue-composables", - "version": "9.2.3", + "version": "9.3.1", "license": "ISC", "dependencies": { - "@web3auth/base": "^9.2.3", - "@web3auth/modal": "^9.2.3" + "@web3auth/base": "^9.3.0", + "@web3auth/modal": "^9.3.1" }, "devDependencies": { "@web3auth/auth": "^9.4.1", - "@web3auth/auth-adapter": "^9.2.3" + "@web3auth/auth-adapter": "^9.3.0" }, "engines": { "node": ">=18.x", @@ -281,24 +281,24 @@ }, "../../packages/modal": { "name": "@web3auth/modal", - "version": "9.2.3", + "version": "9.3.1", "license": "ISC", "dependencies": { - "@web3auth/auth-adapter": "^9.2.3", - "@web3auth/base": "^9.2.3", - "@web3auth/base-provider": "^9.2.3", - "@web3auth/no-modal": "^9.2.3", - "@web3auth/ui": "^9.2.3", + "@web3auth/auth-adapter": "^9.3.0", + "@web3auth/base": "^9.3.0", + "@web3auth/base-provider": "^9.3.0", + "@web3auth/no-modal": "^9.3.1", + "@web3auth/ui": "^9.3.1", "deepmerge": "^4.3.1" }, "devDependencies": { "@svgr/webpack": "^8.1.0", "@toruslabs/isomorphic-style-loader": "^5.3.3", - "@web3auth/account-abstraction-provider": "^9.2.3", + "@web3auth/account-abstraction-provider": "^9.3.1", "@web3auth/auth": "^9.4.1", - "@web3auth/wallet-connect-v2-adapter": "^9.2.3", + "@web3auth/wallet-connect-v2-adapter": "^9.3.0", "css-loader": "^7.1.2", - "postcss-prefix-selector": "^1.16.1", + "postcss-prefix-selector": "^2.1.0", "style-loader": "^4.0.0", "url-loader": "^4.1.1" }, @@ -318,18 +318,18 @@ }, "../../packages/no-modal": { "name": "@web3auth/no-modal", - "version": "9.2.3", + "version": "9.3.1", "license": "ISC", "dependencies": { "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.2.3", - "@web3auth/base-provider": "^9.2.3", + "@web3auth/base": "^9.3.0", + "@web3auth/base-provider": "^9.3.0", "deepmerge": "^4.3.1" }, "devDependencies": { - "@web3auth/account-abstraction-provider": "^9.2.3", - "@web3auth/auth-adapter": "^9.2.3", - "@web3auth/wallet-connect-v2-adapter": "^9.2.3" + "@web3auth/account-abstraction-provider": "^9.3.1", + "@web3auth/auth-adapter": "^9.3.0", + "@web3auth/wallet-connect-v2-adapter": "^9.3.0" }, "engines": { "node": ">=18.x", @@ -351,13 +351,13 @@ }, "../../packages/plugins/solana-wallet-connector-plugin": { "name": "@web3auth/solana-wallet-connector-plugin", - "version": "9.2.3", + "version": "9.3.1", "license": "ISC", "dependencies": { "@toruslabs/solana-embed": "^2.1.0", "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.2.3", - "@web3auth/no-modal": "^9.2.3", + "@web3auth/base": "^9.3.0", + "@web3auth/no-modal": "^9.3.1", "loglevel": "^1.9.2" }, "engines": { @@ -370,13 +370,13 @@ }, "../../packages/plugins/wallet-services-plugin": { "name": "@web3auth/wallet-services-plugin", - "version": "9.2.3", + "version": "9.3.1", "license": "ISC", "dependencies": { "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.2.3", - "@web3auth/no-modal": "^9.2.3", - "@web3auth/ws-embed": "^3.0.0", + "@web3auth/base": "^9.3.0", + "@web3auth/no-modal": "^9.3.1", + "@web3auth/ws-embed": "^3.1.0", "loglevel": "^1.9.2" }, "devDependencies": { @@ -392,18 +392,18 @@ }, "../../packages/providers/account-abstraction-provider": { "name": "@web3auth/account-abstraction-provider", - "version": "9.2.3", + "version": "9.3.1", "license": "ISC", "dependencies": { "@ethereumjs/util": "^9.1.0", "@toruslabs/base-controllers": "^6.2.2", "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.2.3", - "@web3auth/base-provider": "^9.2.3", - "@web3auth/ethereum-provider": "^9.2.3", - "ethers": "^6.13.3", - "permissionless": "^0.2.7", - "viem": "^2.21.19" + "@web3auth/base": "^9.3.0", + "@web3auth/base-provider": "^9.3.0", + "@web3auth/ethereum-provider": "^9.3.0", + "ethers": "^6.13.4", + "permissionless": "^0.2.13", + "viem": "^2.21.36" }, "engines": { "node": ">=18.x", @@ -477,12 +477,12 @@ }, "../../packages/providers/base-provider": { "name": "@web3auth/base-provider", - "version": "9.2.3", + "version": "9.3.0", "license": "ISC", "dependencies": { "@toruslabs/base-controllers": "^6.2.2", "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.2.3", + "@web3auth/base": "^9.3.0", "json-rpc-random-id": "^1.0.1" }, "devDependencies": { @@ -498,7 +498,7 @@ }, "../../packages/providers/ethereum-provider": { "name": "@web3auth/ethereum-provider", - "version": "9.2.3", + "version": "9.3.0", "license": "ISC", "dependencies": { "@ethereumjs/util": "^9.1.0", @@ -506,18 +506,18 @@ "@toruslabs/eccrypto": "^5.0.4", "@toruslabs/http-helpers": "^7.0.0", "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.2.3", - "@web3auth/base-provider": "^9.2.3", + "@web3auth/base": "^9.3.0", + "@web3auth/base-provider": "^9.3.0", "assert": "^2.1.0", "bignumber.js": "^9.1.2", "bn.js": "^5.2.1", - "ethers": "^6.13.3", + "ethers": "^6.13.4", "jsonschema": "^1.4.1" }, "devDependencies": { "@types/bn.js": "^5.1.6", "@types/json-rpc-random-id": "^1.0.3", - "@walletconnect/types": "^2.17.0" + "@walletconnect/types": "^2.17.1" }, "engines": { "node": ">=18.x", @@ -529,20 +529,20 @@ }, "../../packages/providers/solana-provider": { "name": "@web3auth/solana-provider", - "version": "9.2.3", + "version": "9.3.0", "license": "ISC", "dependencies": { "@toruslabs/base-controllers": "^6.2.2", "@toruslabs/tweetnacl-js": "^1.0.4", "@web3auth/auth": "^9.4.1", - "@web3auth/base": "^9.2.3", - "@web3auth/base-provider": "^9.2.3", + "@web3auth/base": "^9.3.0", + "@web3auth/base-provider": "^9.3.0", "bn.js": "^5.2.1", "bs58": "^5.0.0", "json-rpc-random-id": "^1.0.1" }, "devDependencies": { - "@solana/web3.js": "^1.95.3", + "@solana/web3.js": "^1.95.4", "@types/bn.js": "^5.1.6", "@types/bs58": "^4.0.4", "@types/json-rpc-random-id": "^1.0.3" diff --git a/packages/modal-ui/index.html b/packages/modal-ui/index.html index b07fc3596..3386e2b40 100644 --- a/packages/modal-ui/index.html +++ b/packages/modal-ui/index.html @@ -1,4 +1,4 @@ - + @@ -8,7 +8,7 @@ -
+
diff --git a/packages/modal-ui/postcss.config.js b/packages/modal-ui/postcss.config.js index 4be164053..f5174a67c 100644 --- a/packages/modal-ui/postcss.config.js +++ b/packages/modal-ui/postcss.config.js @@ -1,7 +1,19 @@ +const prefix = ".w3a-parent-container"; + module.exports = { - purge: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'], + purge: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"], plugins: { tailwindcss: {}, - autoprefixer: {}, + "postcss-prefix-selector": { + prefix, + transform(_, selector, prefixedSelector) { + // if selector is already the prefix just return it + // e.g. in the case of css vars that we put under prefix + if (selector === prefix) { + return selector; + } + return prefixedSelector; + }, + }, }, }; diff --git a/packages/modal-ui/src/App.tsx b/packages/modal-ui/src/App.tsx index 288e7ff73..e22270550 100644 --- a/packages/modal-ui/src/App.tsx +++ b/packages/modal-ui/src/App.tsx @@ -5,8 +5,8 @@ import { Body } from "./components/Body"; const App: Component = () => { const [open, setOpen] = createSignal(false); return ( -
-

Try out your new modal

+
+

Try out your new modal

setOpen(false)} placement="center" padding={false} showCloseIcon> diff --git a/packages/modal-ui/src/components/Body/Body.tsx b/packages/modal-ui/src/components/Body/Body.tsx index 9c8c5d4dd..5253e9784 100644 --- a/packages/modal-ui/src/components/Body/Body.tsx +++ b/packages/modal-ui/src/components/Body/Body.tsx @@ -1,20 +1,33 @@ -import { createSignal } from "solid-js"; +import { createEffect, createSignal, on } from "solid-js"; import Footer from "../Footer/Footer"; import ConnectWallet from "./ConnectWallet"; import Login from "./Login"; +import { SocialLoginEventType, ExternalWalletEventType, StateEmitterEvents, ModalState, MODAL_STATUS } from "../../interfaces"; +import { LOGIN_PROVIDER, type SafeEventEmitter } from "@web3auth/auth"; +import { ADAPTER_NAMES, ChainNamespaceType, cloneDeep, log, WalletRegistry } from "@web3auth/base"; +import deepmerge from "deepmerge"; +// import { on } from "events"; +export interface BodyProps { + stateListener: SafeEventEmitter; + appLogo?: string; + appName?: string; + chainNamespace: ChainNamespaceType; + walletRegistry?: WalletRegistry; + handleSocialLoginClick: (params: SocialLoginEventType) => void; + handleExternalWalletClick: (params: ExternalWalletEventType) => void; + handleShowExternalWallets: (externalWalletsInitialized: boolean) => void; +} const PAGES = { LOGIN: 'login', CONNECT_WALLET: 'connect_wallet' } -const Body = () => { - +const Body = (props: BodyProps) => { const [currentPage, setCurrentPage] = createSignal(PAGES.LOGIN); - return ( -
+
{currentPage() === PAGES.LOGIN && setCurrentPage(PAGES.CONNECT_WALLET)} />} {currentPage() === PAGES.CONNECT_WALLET && setCurrentPage(PAGES.LOGIN)} />}