@orderly.network/wallet-connector-privy 2.6.2 → 2.6.3
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.mjs
CHANGED
|
@@ -1554,7 +1554,16 @@ function SOLConnectArea({
|
|
|
1554
1554
|
}
|
|
1555
1555
|
function EVMConnectArea({ connect }) {
|
|
1556
1556
|
const { connectors } = useWagmiWallet();
|
|
1557
|
+
const { setOpenConnectDrawer } = useWalletConnectorPrivy();
|
|
1557
1558
|
const { isMobile } = useScreen();
|
|
1559
|
+
const onConnect = (item) => {
|
|
1560
|
+
if (isMobile) {
|
|
1561
|
+
if (item.id === "walletConnect") {
|
|
1562
|
+
setOpenConnectDrawer(false);
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
connect(connect(item));
|
|
1566
|
+
};
|
|
1558
1567
|
return /* @__PURE__ */ React19.createElement("div", { className: "" }, /* @__PURE__ */ React19.createElement("div", { className: "oui-mb-2 oui-text-sm oui-font-semibold oui-text-base-contrast-80" }, "EVM"), /* @__PURE__ */ React19.createElement("div", { className: "oui-grid oui-grid-cols-2 oui-gap-2" }, connectors.map((item, key) => /* @__PURE__ */ React19.createElement(
|
|
1559
1568
|
"div",
|
|
1560
1569
|
{
|
|
@@ -1563,7 +1572,7 @@ function EVMConnectArea({ connect }) {
|
|
|
1563
1572
|
" 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]",
|
|
1564
1573
|
isMobile ? "oui-bg-base-5" : "oui-bg-[#07080A]"
|
|
1565
1574
|
),
|
|
1566
|
-
onClick: () =>
|
|
1575
|
+
onClick: () => onConnect(item)
|
|
1567
1576
|
},
|
|
1568
1577
|
/* @__PURE__ */ React19.createElement(RenderWalletIcon, { connector: item }),
|
|
1569
1578
|
/* @__PURE__ */ React19.createElement("div", { className: "oui-text-2xs oui-text-base-contrast" }, item.name)
|
|
@@ -2967,6 +2976,11 @@ function InitPrivyProvider({
|
|
|
2967
2976
|
createOnLogin: "all-users"
|
|
2968
2977
|
}
|
|
2969
2978
|
},
|
|
2979
|
+
externalWallets: {
|
|
2980
|
+
walletConnect: {
|
|
2981
|
+
enabled: false
|
|
2982
|
+
}
|
|
2983
|
+
},
|
|
2970
2984
|
defaultChain: chains[0],
|
|
2971
2985
|
supportedChains: chains
|
|
2972
2986
|
};
|