@matchain/matchid-sdk-react 0.1.51-alpha.1 → 0.1.51
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/{chunk-55KKIDVT.mjs → chunk-UXFJALFG.mjs} +2 -2
- package/dist/{chunk-KKWAYHRG.mjs → chunk-VIJ4FUT3.mjs} +9 -7
- package/dist/chunk-VIJ4FUT3.mjs.map +1 -0
- package/dist/components/index.js +8 -6
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/api/index.js +2 -2
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +2 -2
- package/dist/hooks/index.js +7 -5
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.css +70 -16
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/example/src/components/Login/index.tsx +9 -1
- package/package.json +1 -1
- package/dist/chunk-KKWAYHRG.mjs.map +0 -1
- /package/dist/{chunk-55KKIDVT.mjs.map → chunk-UXFJALFG.mjs.map} +0 -0
package/dist/components/index.js
CHANGED
|
@@ -2574,6 +2574,7 @@ function useMatchChain() {
|
|
|
2574
2574
|
}) {
|
|
2575
2575
|
const { chainId: storeChainId2, setChainId: setChainId2 } = useLocalStore_default();
|
|
2576
2576
|
const [selectedChainId, setSelectedChainId] = (0, import_react13.useState)(storeChainId2);
|
|
2577
|
+
const isDownMd = useDownMd();
|
|
2577
2578
|
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: `matchid-change-network-box`, children: [
|
|
2578
2579
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: `matchid-change-network-list`, children: chainListQuery.data?.map((item, index) => {
|
|
2579
2580
|
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
@@ -2586,7 +2587,7 @@ function useMatchChain() {
|
|
|
2586
2587
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("img", { src: item.iconUrl, className: `matchid-change-network-item-icon` }),
|
|
2587
2588
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "matchid-change-network-item-name", children: item.name })
|
|
2588
2589
|
] }),
|
|
2589
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Radio, { checked: selectedChainId === item.id })
|
|
2590
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
|
|
2590
2591
|
]
|
|
2591
2592
|
},
|
|
2592
2593
|
index
|
|
@@ -3255,11 +3256,11 @@ function useUserInfo() {
|
|
|
3255
3256
|
};
|
|
3256
3257
|
const getLoginEmailCode = async (email) => {
|
|
3257
3258
|
const res = await getEmailCodeApi(email);
|
|
3258
|
-
if (
|
|
3259
|
+
if (isSuccess(res)) {
|
|
3259
3260
|
window.sessionStorage.setItem("loginkey", res.data.key);
|
|
3260
3261
|
return res.data.key;
|
|
3261
3262
|
}
|
|
3262
|
-
|
|
3263
|
+
throw new Error(res.message);
|
|
3263
3264
|
};
|
|
3264
3265
|
const loginByEmail = async ({
|
|
3265
3266
|
email,
|
|
@@ -3444,8 +3445,8 @@ function StepVerify(props) {
|
|
|
3444
3445
|
try {
|
|
3445
3446
|
setError("");
|
|
3446
3447
|
setSending(true);
|
|
3447
|
-
sendTimeRef.current = intervalTime;
|
|
3448
3448
|
await getLoginEmailCode(props.email);
|
|
3449
|
+
sendTimeRef.current = intervalTime;
|
|
3449
3450
|
setSendBtnText(`${sendTimeRef.current}s`);
|
|
3450
3451
|
intervalRef.current = setInterval(() => {
|
|
3451
3452
|
sendTimeRef.current--;
|
|
@@ -5609,6 +5610,7 @@ var import_react39 = require("react");
|
|
|
5609
5610
|
var import_react_intl20 = require("react-intl");
|
|
5610
5611
|
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
5611
5612
|
function TokenSendList({ close }) {
|
|
5613
|
+
const isDownMd = useDownMd();
|
|
5612
5614
|
const walletAssets = useMatchWalletAssets();
|
|
5613
5615
|
const matchWalletAssetList = useMatchWalletAssetList({
|
|
5614
5616
|
list: walletAssets.mergedAssets
|
|
@@ -5635,14 +5637,14 @@ function TokenSendList({ close }) {
|
|
|
5635
5637
|
setChecked(n);
|
|
5636
5638
|
},
|
|
5637
5639
|
children: [
|
|
5638
|
-
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Radio, { checked: checked?.address == n.address }),
|
|
5640
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Radio, { checked: checked?.address == n.address, size: isDownMd ? 18 : 24 }),
|
|
5639
5641
|
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "matchid-token-send-content", children: [
|
|
5640
5642
|
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "matchid-token-send-logo", children: [
|
|
5641
5643
|
n.icon ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("img", { src: n.icon, alt: n.symbol, className: `matchid-token-send-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
5642
5644
|
AlphaAvatar2,
|
|
5643
5645
|
{
|
|
5644
5646
|
className: `matchid-token-send-icon`,
|
|
5645
|
-
size: 40,
|
|
5647
|
+
size: isDownMd ? 28 : 40,
|
|
5646
5648
|
name: n.symbol || n.name || ""
|
|
5647
5649
|
}
|
|
5648
5650
|
),
|