@orderly.network/wallet-connector-privy 2.6.2-alpha.0 → 2.6.3-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -1579,7 +1579,16 @@ function SOLConnectArea({
|
|
|
1579
1579
|
}
|
|
1580
1580
|
function EVMConnectArea({ connect }) {
|
|
1581
1581
|
const { connectors } = useWagmiWallet();
|
|
1582
|
+
const { setOpenConnectDrawer } = useWalletConnectorPrivy();
|
|
1582
1583
|
const { isMobile } = ui.useScreen();
|
|
1584
|
+
const onConnect = (item) => {
|
|
1585
|
+
if (isMobile) {
|
|
1586
|
+
if (item.id === "walletConnect") {
|
|
1587
|
+
setOpenConnectDrawer(false);
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
connect(connect(item));
|
|
1591
|
+
};
|
|
1583
1592
|
return /* @__PURE__ */ React19__default.default.createElement("div", { className: "" }, /* @__PURE__ */ React19__default.default.createElement("div", { className: "oui-mb-2 oui-text-sm oui-font-semibold oui-text-base-contrast-80" }, "EVM"), /* @__PURE__ */ React19__default.default.createElement("div", { className: "oui-grid oui-grid-cols-2 oui-gap-2" }, connectors.map((item, key) => /* @__PURE__ */ React19__default.default.createElement(
|
|
1584
1593
|
"div",
|
|
1585
1594
|
{
|
|
@@ -1588,7 +1597,7 @@ function EVMConnectArea({ connect }) {
|
|
|
1588
1597
|
" oui-flex oui-flex-1 oui-cursor-pointer oui-items-center oui-justify-start oui-gap-1 oui-rounded-[6px] oui-px-2 oui-py-[11px]",
|
|
1589
1598
|
isMobile ? "oui-bg-base-5" : "oui-bg-[#07080A]"
|
|
1590
1599
|
),
|
|
1591
|
-
onClick: () =>
|
|
1600
|
+
onClick: () => onConnect(item)
|
|
1592
1601
|
},
|
|
1593
1602
|
/* @__PURE__ */ React19__default.default.createElement(RenderWalletIcon, { connector: item }),
|
|
1594
1603
|
/* @__PURE__ */ React19__default.default.createElement("div", { className: "oui-text-2xs oui-text-base-contrast" }, item.name)
|
|
@@ -2992,6 +3001,11 @@ function InitPrivyProvider({
|
|
|
2992
3001
|
createOnLogin: "all-users"
|
|
2993
3002
|
}
|
|
2994
3003
|
},
|
|
3004
|
+
externalWallets: {
|
|
3005
|
+
walletConnect: {
|
|
3006
|
+
enabled: false
|
|
3007
|
+
}
|
|
3008
|
+
},
|
|
2995
3009
|
defaultChain: chains[0],
|
|
2996
3010
|
supportedChains: chains
|
|
2997
3011
|
};
|