@xyo-network/react-wallet 2.55.0 → 2.55.2
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/cjs/components/WalletAccountDetails/WalletAccountDetails.js +4 -4
- package/dist/cjs/components/WalletAccountDetails/WalletAccountDetails.js.map +1 -1
- package/dist/docs.json +140 -140
- package/dist/esm/components/WalletAccountDetails/WalletAccountDetails.js +4 -4
- package/dist/esm/components/WalletAccountDetails/WalletAccountDetails.js.map +1 -1
- package/dist/types/components/WalletAccountDetails/WalletAccountDetails.d.ts +2 -2
- package/dist/types/components/WalletAccountDetails/WalletAccountDetails.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/components/WalletAccountDetails/WalletAccountDetails.tsx +6 -10
- package/src/components/WalletAccountSelect/WalletAccountSelectBar.stories.tsx +2 -2
|
@@ -11,11 +11,11 @@ const react_network_1 = require("@xyo-network/react-network");
|
|
|
11
11
|
const hooks_1 = require("../../hooks");
|
|
12
12
|
const WalletAccountDetails = (_a) => {
|
|
13
13
|
var _b;
|
|
14
|
-
var { exploreUrl = 'https://explore.xyo.network', account
|
|
15
|
-
const [
|
|
14
|
+
var { exploreUrl = 'https://explore.xyo.network', account } = _a, props = tslib_1.__rest(_a, ["exploreUrl", "account"]);
|
|
15
|
+
const [accountToUse] = (0, hooks_1.useAccount)({ account });
|
|
16
16
|
const { network } = (0, react_network_1.useNetwork)();
|
|
17
|
-
const exploreAddressUrl = `${exploreUrl}/recent?account=${
|
|
18
|
-
return ((0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexCol, Object.assign({}, props, { children: [(0, jsx_runtime_1.jsx)(react_crypto_1.EthAccountButton, { address: eth_address_1.EthAddress.fromString(
|
|
17
|
+
const exploreAddressUrl = `${exploreUrl}/recent?account=${accountToUse === null || accountToUse === void 0 ? void 0 : accountToUse.address}&network=${(_b = network === null || network === void 0 ? void 0 : network.name) !== null && _b !== void 0 ? _b : 'main'}`;
|
|
18
|
+
return ((0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexCol, Object.assign({}, props, { children: [(0, jsx_runtime_1.jsx)(react_crypto_1.EthAccountButton, { address: eth_address_1.EthAddress.fromString(accountToUse === null || accountToUse === void 0 ? void 0 : accountToUse.address) }), (0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexRow, Object.assign({ gap: 1 }, { children: [(0, jsx_runtime_1.jsx)(react_number_status_1.NumberStatus, { rounded: true, title: "Tokens", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.tokens`, target: "_blank" }), (0, jsx_runtime_1.jsx)(react_number_status_1.NumberStatus, { rounded: true, title: "NFTs", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.nfts`, target: "_blank" }), (0, jsx_runtime_1.jsx)(react_number_status_1.NumberStatus, { rounded: true, title: "Signatures", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.signatures`, target: "_blank" }), (0, jsx_runtime_1.jsx)(react_number_status_1.NumberStatus, { rounded: true, title: "Signins", value: 0, to: `${exploreAddressUrl}&schema=network.xyo.account.signins`, target: "_blank" })] }))] })));
|
|
19
19
|
};
|
|
20
20
|
exports.WalletAccountDetails = WalletAccountDetails;
|
|
21
21
|
//# sourceMappingURL=WalletAccountDetails.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalletAccountDetails.js","sourceRoot":"","sources":["../../../../src/components/WalletAccountDetails/WalletAccountDetails.tsx"],"names":[],"mappings":";;;;;AAAA,qDAAgD;AAChD,uDAAuD;AACvD,yDAAsE;AACtE,qEAA0D;
|
|
1
|
+
{"version":3,"file":"WalletAccountDetails.js","sourceRoot":"","sources":["../../../../src/components/WalletAccountDetails/WalletAccountDetails.tsx"],"names":[],"mappings":";;;;;AAAA,qDAAgD;AAChD,uDAAuD;AACvD,yDAAsE;AACtE,qEAA0D;AAC1D,8DAAuD;AAGvD,uCAAwC;AAOjC,MAAM,oBAAoB,GAAwC,CAAC,EAAiE,EAAE,EAAE;;Q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