@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
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useUserInfo,
|
|
12
12
|
verifyPohApi,
|
|
13
13
|
wallet_exports
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VIJ4FUT3.mjs";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
17
|
} from "./chunk-J5LGTIGS.mjs";
|
|
@@ -94,4 +94,4 @@ export {
|
|
|
94
94
|
user_exports,
|
|
95
95
|
api_exports
|
|
96
96
|
};
|
|
97
|
-
//# sourceMappingURL=chunk-
|
|
97
|
+
//# sourceMappingURL=chunk-UXFJALFG.mjs.map
|
|
@@ -1250,6 +1250,7 @@ function useMatchChain() {
|
|
|
1250
1250
|
}) {
|
|
1251
1251
|
const { chainId: storeChainId2, setChainId: setChainId2 } = useLocalStore_default();
|
|
1252
1252
|
const [selectedChainId, setSelectedChainId] = useState6(storeChainId2);
|
|
1253
|
+
const isDownMd = useDownMd();
|
|
1253
1254
|
return /* @__PURE__ */ jsxs4("div", { className: `matchid-change-network-box`, children: [
|
|
1254
1255
|
/* @__PURE__ */ jsx5("div", { className: `matchid-change-network-list`, children: chainListQuery.data?.map((item, index) => {
|
|
1255
1256
|
return /* @__PURE__ */ jsxs4(
|
|
@@ -1262,7 +1263,7 @@ function useMatchChain() {
|
|
|
1262
1263
|
/* @__PURE__ */ jsx5("img", { src: item.iconUrl, className: `matchid-change-network-item-icon` }),
|
|
1263
1264
|
/* @__PURE__ */ jsx5("span", { className: "matchid-change-network-item-name", children: item.name })
|
|
1264
1265
|
] }),
|
|
1265
|
-
/* @__PURE__ */ jsx5(Radio, { checked: selectedChainId === item.id })
|
|
1266
|
+
/* @__PURE__ */ jsx5(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
|
|
1266
1267
|
]
|
|
1267
1268
|
},
|
|
1268
1269
|
index
|
|
@@ -3807,11 +3808,11 @@ function useUserInfo() {
|
|
|
3807
3808
|
};
|
|
3808
3809
|
const getLoginEmailCode = async (email) => {
|
|
3809
3810
|
const res = await getEmailCodeApi(email);
|
|
3810
|
-
if (
|
|
3811
|
+
if (isSuccess(res)) {
|
|
3811
3812
|
window.sessionStorage.setItem("loginkey", res.data.key);
|
|
3812
3813
|
return res.data.key;
|
|
3813
3814
|
}
|
|
3814
|
-
|
|
3815
|
+
throw new Error(res.message);
|
|
3815
3816
|
};
|
|
3816
3817
|
const loginByEmail = async ({
|
|
3817
3818
|
email,
|
|
@@ -3996,8 +3997,8 @@ function StepVerify(props) {
|
|
|
3996
3997
|
try {
|
|
3997
3998
|
setError("");
|
|
3998
3999
|
setSending(true);
|
|
3999
|
-
sendTimeRef.current = intervalTime;
|
|
4000
4000
|
await getLoginEmailCode(props.email);
|
|
4001
|
+
sendTimeRef.current = intervalTime;
|
|
4001
4002
|
setSendBtnText(`${sendTimeRef.current}s`);
|
|
4002
4003
|
intervalRef.current = setInterval(() => {
|
|
4003
4004
|
sendTimeRef.current--;
|
|
@@ -6208,6 +6209,7 @@ import { useState as useState27 } from "react";
|
|
|
6208
6209
|
import { FormattedMessage as FormattedMessage13 } from "react-intl";
|
|
6209
6210
|
import { jsx as jsx32, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
6210
6211
|
function TokenSendList({ close }) {
|
|
6212
|
+
const isDownMd = useDownMd();
|
|
6211
6213
|
const walletAssets = useMatchWalletAssets();
|
|
6212
6214
|
const matchWalletAssetList = useMatchWalletAssetList({
|
|
6213
6215
|
list: walletAssets.mergedAssets
|
|
@@ -6234,14 +6236,14 @@ function TokenSendList({ close }) {
|
|
|
6234
6236
|
setChecked(n);
|
|
6235
6237
|
},
|
|
6236
6238
|
children: [
|
|
6237
|
-
/* @__PURE__ */ jsx32(Radio, { checked: checked?.address == n.address }),
|
|
6239
|
+
/* @__PURE__ */ jsx32(Radio, { checked: checked?.address == n.address, size: isDownMd ? 18 : 24 }),
|
|
6238
6240
|
/* @__PURE__ */ jsxs22("div", { className: "matchid-token-send-content", children: [
|
|
6239
6241
|
/* @__PURE__ */ jsxs22("div", { className: "matchid-token-send-logo", children: [
|
|
6240
6242
|
n.icon ? /* @__PURE__ */ jsx32("img", { src: n.icon, alt: n.symbol, className: `matchid-token-send-icon` }) : /* @__PURE__ */ jsx32(
|
|
6241
6243
|
AlphaAvatar2,
|
|
6242
6244
|
{
|
|
6243
6245
|
className: `matchid-token-send-icon`,
|
|
6244
|
-
size: 40,
|
|
6246
|
+
size: isDownMd ? 28 : 40,
|
|
6245
6247
|
name: n.symbol || n.name || ""
|
|
6246
6248
|
}
|
|
6247
6249
|
),
|
|
@@ -6460,4 +6462,4 @@ export {
|
|
|
6460
6462
|
MatchProvider,
|
|
6461
6463
|
useMatch
|
|
6462
6464
|
};
|
|
6463
|
-
//# sourceMappingURL=chunk-
|
|
6465
|
+
//# sourceMappingURL=chunk-VIJ4FUT3.mjs.map
|