@antscorp/antsomi-ui 1.3.5-beta.361 → 1.3.5-beta.362
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.
|
@@ -356,7 +356,7 @@ export const AccountSharing = props => {
|
|
|
356
356
|
xhr.send(JSON.stringify(data));
|
|
357
357
|
});
|
|
358
358
|
const selectNetwork = network => {
|
|
359
|
-
if (networkId === network.networkId) {
|
|
359
|
+
if (+networkId === +network.networkId) {
|
|
360
360
|
return;
|
|
361
361
|
}
|
|
362
362
|
loginNetworkWithToken(network);
|
|
@@ -399,7 +399,10 @@ export const AccountSharing = props => {
|
|
|
399
399
|
React.createElement(Flex, { gap: 10 },
|
|
400
400
|
React.createElement(Button, { type: "text", onClick: () => setTab('account'), icon: React.createElement(Icon, { type: "icon-ants-angle-left", style: { fontSize: '12px' } }) }, translateLang('KEY_BACK')),
|
|
401
401
|
React.createElement(InputSearch, { className: "--portal", value: portalSearch, onChange: value => setPortalSearch(value), onClickRemove: () => setPortalSearch('') })),
|
|
402
|
-
React.createElement("div", { className: "network-select" }, filterListNetwork === null || filterListNetwork === void 0 ? void 0 : filterListNetwork.map((network) => (React.createElement("div", { key: network.networkId, className: `network-item ${networkId === +network.networkId
|
|
402
|
+
React.createElement("div", { className: "network-select" }, filterListNetwork === null || filterListNetwork === void 0 ? void 0 : filterListNetwork.map((network) => (React.createElement("div", { key: network.networkId, className: `network-item ${+networkId === +network.networkId ||
|
|
403
|
+
+(currentNetwork === null || currentNetwork === void 0 ? void 0 : currentNetwork.networkId) === +network.networkId
|
|
404
|
+
? 'disabled'
|
|
405
|
+
: ''}`, onClick: () => selectNetwork(network) },
|
|
403
406
|
React.createElement("div", { className: "image-wrapper" },
|
|
404
407
|
React.createElement("img", { src: network.logo, style: {
|
|
405
408
|
borderRadius: 0,
|