@multiversx/sdk-dapp-liquidity 1.1.0-alpha.38 → 1.1.0-alpha.39
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/package.json +1 -1
- package/reactjs/components/BridgeForm/BridgeForm.js +4 -4
- package/reactjs/components/BridgeForm/BridgeForm.mjs +4 -4
- package/reactjs/components/BridgeHistory/BridgeHistory.js +6 -6
- package/reactjs/components/BridgeHistory/BridgeHistory.mjs +6 -6
- package/reactjs/components/Connect/BridgeAccountDisplay.js +2 -2
- package/reactjs/components/Connect/BridgeAccountDisplay.mjs +2 -2
- package/reactjs/components/Connect/BridgeConnectButton.js +1 -1
- package/reactjs/components/Connect/BridgeConnectButton.mjs +1 -1
- package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.js +4 -2
- package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.mjs +4 -2
- package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.d.ts +1 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.js +2 -2
- package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.mjs +2 -2
- package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.js +2 -2
- package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.mjs +2 -2
- package/reactjs/components/TokenSelector/components/ChainSelect/types/chainSelectOption.d.ts +1 -0
- package/reactjs/components/TokenSelector/components/ChainSelect/types/partialChainOption.d.ts +1 -0
- package/reactjs/components/TokenSelector/components/TokenIcon.js +2 -2
- package/reactjs/components/TokenSelector/components/TokenIcon.mjs +2 -2
- package/reactjs/components/TokenSelector/components/TokenList.js +1 -1
- package/reactjs/components/TokenSelector/components/TokenList.mjs +1 -1
- package/reactjs/hooks/useResolveTokenChain.js +1 -1
- package/reactjs/hooks/useResolveTokenChain.mjs +1 -1
- package/reactjs/queries/useGetEvmTokensBalances.query.js +2 -1
- package/reactjs/queries/useGetEvmTokensBalances.query.mjs +2 -1
package/package.json
CHANGED
|
@@ -737,7 +737,7 @@ const BridgeForm = ({
|
|
|
737
737
|
reactjs_components_Connect_MvxAccountDisplay.MvxAccountDisplay,
|
|
738
738
|
{
|
|
739
739
|
accountAddress: mvxAddress,
|
|
740
|
-
chainIcon: (mvxChain == null ? void 0 : mvxChain.
|
|
740
|
+
chainIcon: (mvxChain == null ? void 0 : mvxChain.pngUrl) ?? "",
|
|
741
741
|
username,
|
|
742
742
|
accountExplorerUrl: `${options.mvxExplorerAddress}/accounts/${mvxAddress}`,
|
|
743
743
|
showTag: true,
|
|
@@ -783,7 +783,7 @@ const BridgeForm = ({
|
|
|
783
783
|
reactjs_components_Connect_MvxConnectButton.MvxConnectButton,
|
|
784
784
|
{
|
|
785
785
|
mvxAccountAddress: mvxAddress,
|
|
786
|
-
icon: mvxChain == null ? void 0 : mvxChain.
|
|
786
|
+
icon: (mvxChain == null ? void 0 : mvxChain.pngUrl) ?? "",
|
|
787
787
|
onClick: onMvxConnect
|
|
788
788
|
}
|
|
789
789
|
),
|
|
@@ -808,7 +808,7 @@ const BridgeForm = ({
|
|
|
808
808
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
809
809
|
"img",
|
|
810
810
|
{
|
|
811
|
-
src: (mvxChain == null ? void 0 : mvxChain.
|
|
811
|
+
src: (mvxChain == null ? void 0 : mvxChain.pngUrl) ?? "",
|
|
812
812
|
alt: "",
|
|
813
813
|
className: "liq-h-[1.5rem] liq-w-[1.5rem]"
|
|
814
814
|
}
|
|
@@ -829,7 +829,7 @@ const BridgeForm = ({
|
|
|
829
829
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
830
830
|
"img",
|
|
831
831
|
{
|
|
832
|
-
src: (mvxChain == null ? void 0 : mvxChain.
|
|
832
|
+
src: (mvxChain == null ? void 0 : mvxChain.pngUrl) ?? "",
|
|
833
833
|
alt: "",
|
|
834
834
|
className: "liq-h-[1.5rem] liq-w-[1.5rem]"
|
|
835
835
|
}
|
|
@@ -734,7 +734,7 @@ const BridgeForm = ({
|
|
|
734
734
|
MvxAccountDisplay,
|
|
735
735
|
{
|
|
736
736
|
accountAddress: mvxAddress,
|
|
737
|
-
chainIcon: (mvxChain == null ? void 0 : mvxChain.
|
|
737
|
+
chainIcon: (mvxChain == null ? void 0 : mvxChain.pngUrl) ?? "",
|
|
738
738
|
username,
|
|
739
739
|
accountExplorerUrl: `${options.mvxExplorerAddress}/accounts/${mvxAddress}`,
|
|
740
740
|
showTag: true,
|
|
@@ -780,7 +780,7 @@ const BridgeForm = ({
|
|
|
780
780
|
MvxConnectButton,
|
|
781
781
|
{
|
|
782
782
|
mvxAccountAddress: mvxAddress,
|
|
783
|
-
icon: mvxChain == null ? void 0 : mvxChain.
|
|
783
|
+
icon: (mvxChain == null ? void 0 : mvxChain.pngUrl) ?? "",
|
|
784
784
|
onClick: onMvxConnect
|
|
785
785
|
}
|
|
786
786
|
),
|
|
@@ -805,7 +805,7 @@ const BridgeForm = ({
|
|
|
805
805
|
/* @__PURE__ */ jsx(
|
|
806
806
|
"img",
|
|
807
807
|
{
|
|
808
|
-
src: (mvxChain == null ? void 0 : mvxChain.
|
|
808
|
+
src: (mvxChain == null ? void 0 : mvxChain.pngUrl) ?? "",
|
|
809
809
|
alt: "",
|
|
810
810
|
className: "liq-h-[1.5rem] liq-w-[1.5rem]"
|
|
811
811
|
}
|
|
@@ -826,7 +826,7 @@ const BridgeForm = ({
|
|
|
826
826
|
/* @__PURE__ */ jsx(
|
|
827
827
|
"img",
|
|
828
828
|
{
|
|
829
|
-
src: (mvxChain == null ? void 0 : mvxChain.
|
|
829
|
+
src: (mvxChain == null ? void 0 : mvxChain.pngUrl) ?? "",
|
|
830
830
|
alt: "",
|
|
831
831
|
className: "liq-h-[1.5rem] liq-w-[1.5rem]"
|
|
832
832
|
}
|
|
@@ -214,7 +214,7 @@ const BridgeHistory = ({
|
|
|
214
214
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
215
215
|
"img",
|
|
216
216
|
{
|
|
217
|
-
src: (_c = tokensMap[transaction.tokenDestination]) == null ? void 0 : _c.
|
|
217
|
+
src: (_c = tokensMap[transaction.tokenDestination]) == null ? void 0 : _c.pngUrl,
|
|
218
218
|
alt: "",
|
|
219
219
|
className: "liq-h-[1.5rem] liq-w-[1.5rem]"
|
|
220
220
|
}
|
|
@@ -231,7 +231,7 @@ const BridgeHistory = ({
|
|
|
231
231
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "liq-flex-shrink-0 liq-overflow-hidden liq-rounded-full liq-h-8 liq-w-8 liq-flex liq-items-center liq-justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "liq-h-8 liq-w-8 liq-flex liq-items-center liq-justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
232
232
|
"img",
|
|
233
233
|
{
|
|
234
|
-
src: (_f = tokensMap[transaction.tokenSource]) == null ? void 0 : _f.
|
|
234
|
+
src: (_f = tokensMap[transaction.tokenSource]) == null ? void 0 : _f.pngUrl,
|
|
235
235
|
alt: "",
|
|
236
236
|
className: "liq-asset-icon liq-sm liq-p-0"
|
|
237
237
|
}
|
|
@@ -239,7 +239,7 @@ const BridgeHistory = ({
|
|
|
239
239
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
240
240
|
"img",
|
|
241
241
|
{
|
|
242
|
-
src: (_g = chainsMap[transaction.fromChainId]) == null ? void 0 : _g.
|
|
242
|
+
src: (_g = chainsMap[transaction.fromChainId]) == null ? void 0 : _g.pngUrl,
|
|
243
243
|
alt: "",
|
|
244
244
|
className: "liq-absolute liq-left-3 liq-bottom-[-2px] liq-chain-icon liq-sm liq-w-5 liq-h-5 liq-border-[3px] liq-border-neutral-850 liq-rounded-lg"
|
|
245
245
|
}
|
|
@@ -271,7 +271,7 @@ const BridgeHistory = ({
|
|
|
271
271
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
272
272
|
"img",
|
|
273
273
|
{
|
|
274
|
-
src: (_j = tokensMap[transaction.tokenSource]) == null ? void 0 : _j.
|
|
274
|
+
src: (_j = tokensMap[transaction.tokenSource]) == null ? void 0 : _j.pngUrl,
|
|
275
275
|
alt: "",
|
|
276
276
|
className: "liq-h-[1.5rem] liq-w-[1.5rem]"
|
|
277
277
|
}
|
|
@@ -288,7 +288,7 @@ const BridgeHistory = ({
|
|
|
288
288
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "liq-flex-shrink-0 liq-overflow-hidden liq-rounded-full liq-h-8 liq-w-8 liq-flex liq-items-center liq-justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "liq-h-8 liq-w-8 liq-flex liq-items-center liq-justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
289
289
|
"img",
|
|
290
290
|
{
|
|
291
|
-
src: (_m = tokensMap[transaction.tokenDestination]) == null ? void 0 : _m.
|
|
291
|
+
src: (_m = tokensMap[transaction.tokenDestination]) == null ? void 0 : _m.pngUrl,
|
|
292
292
|
alt: "",
|
|
293
293
|
className: "liq-asset-icon liq-sm liq-p-0"
|
|
294
294
|
}
|
|
@@ -296,7 +296,7 @@ const BridgeHistory = ({
|
|
|
296
296
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
297
297
|
"img",
|
|
298
298
|
{
|
|
299
|
-
src: (_n = chainsMap[transaction.toChainId]) == null ? void 0 : _n.
|
|
299
|
+
src: (_n = chainsMap[transaction.toChainId]) == null ? void 0 : _n.pngUrl,
|
|
300
300
|
alt: "",
|
|
301
301
|
className: "liq-absolute liq-left-3 liq-bottom-[-2px] liq-chain-icon liq-sm liq-w-5 liq-h-5 liq-border-[3px] liq-border-neutral-850 liq-rounded-lg"
|
|
302
302
|
}
|
|
@@ -211,7 +211,7 @@ const BridgeHistory = ({
|
|
|
211
211
|
/* @__PURE__ */ jsx(
|
|
212
212
|
"img",
|
|
213
213
|
{
|
|
214
|
-
src: (_c = tokensMap[transaction.tokenDestination]) == null ? void 0 : _c.
|
|
214
|
+
src: (_c = tokensMap[transaction.tokenDestination]) == null ? void 0 : _c.pngUrl,
|
|
215
215
|
alt: "",
|
|
216
216
|
className: "liq-h-[1.5rem] liq-w-[1.5rem]"
|
|
217
217
|
}
|
|
@@ -228,7 +228,7 @@ const BridgeHistory = ({
|
|
|
228
228
|
/* @__PURE__ */ jsx("div", { className: "liq-flex-shrink-0 liq-overflow-hidden liq-rounded-full liq-h-8 liq-w-8 liq-flex liq-items-center liq-justify-center", children: /* @__PURE__ */ jsx("div", { className: "liq-h-8 liq-w-8 liq-flex liq-items-center liq-justify-center", children: /* @__PURE__ */ jsx(
|
|
229
229
|
"img",
|
|
230
230
|
{
|
|
231
|
-
src: (_f = tokensMap[transaction.tokenSource]) == null ? void 0 : _f.
|
|
231
|
+
src: (_f = tokensMap[transaction.tokenSource]) == null ? void 0 : _f.pngUrl,
|
|
232
232
|
alt: "",
|
|
233
233
|
className: "liq-asset-icon liq-sm liq-p-0"
|
|
234
234
|
}
|
|
@@ -236,7 +236,7 @@ const BridgeHistory = ({
|
|
|
236
236
|
/* @__PURE__ */ jsx(
|
|
237
237
|
"img",
|
|
238
238
|
{
|
|
239
|
-
src: (_g = chainsMap[transaction.fromChainId]) == null ? void 0 : _g.
|
|
239
|
+
src: (_g = chainsMap[transaction.fromChainId]) == null ? void 0 : _g.pngUrl,
|
|
240
240
|
alt: "",
|
|
241
241
|
className: "liq-absolute liq-left-3 liq-bottom-[-2px] liq-chain-icon liq-sm liq-w-5 liq-h-5 liq-border-[3px] liq-border-neutral-850 liq-rounded-lg"
|
|
242
242
|
}
|
|
@@ -268,7 +268,7 @@ const BridgeHistory = ({
|
|
|
268
268
|
/* @__PURE__ */ jsx(
|
|
269
269
|
"img",
|
|
270
270
|
{
|
|
271
|
-
src: (_j = tokensMap[transaction.tokenSource]) == null ? void 0 : _j.
|
|
271
|
+
src: (_j = tokensMap[transaction.tokenSource]) == null ? void 0 : _j.pngUrl,
|
|
272
272
|
alt: "",
|
|
273
273
|
className: "liq-h-[1.5rem] liq-w-[1.5rem]"
|
|
274
274
|
}
|
|
@@ -285,7 +285,7 @@ const BridgeHistory = ({
|
|
|
285
285
|
/* @__PURE__ */ jsx("div", { className: "liq-flex-shrink-0 liq-overflow-hidden liq-rounded-full liq-h-8 liq-w-8 liq-flex liq-items-center liq-justify-center", children: /* @__PURE__ */ jsx("div", { className: "liq-h-8 liq-w-8 liq-flex liq-items-center liq-justify-center", children: /* @__PURE__ */ jsx(
|
|
286
286
|
"img",
|
|
287
287
|
{
|
|
288
|
-
src: (_m = tokensMap[transaction.tokenDestination]) == null ? void 0 : _m.
|
|
288
|
+
src: (_m = tokensMap[transaction.tokenDestination]) == null ? void 0 : _m.pngUrl,
|
|
289
289
|
alt: "",
|
|
290
290
|
className: "liq-asset-icon liq-sm liq-p-0"
|
|
291
291
|
}
|
|
@@ -293,7 +293,7 @@ const BridgeHistory = ({
|
|
|
293
293
|
/* @__PURE__ */ jsx(
|
|
294
294
|
"img",
|
|
295
295
|
{
|
|
296
|
-
src: (_n = chainsMap[transaction.toChainId]) == null ? void 0 : _n.
|
|
296
|
+
src: (_n = chainsMap[transaction.toChainId]) == null ? void 0 : _n.pngUrl,
|
|
297
297
|
alt: "",
|
|
298
298
|
className: "liq-absolute liq-left-3 liq-bottom-[-2px] liq-chain-icon liq-sm liq-w-5 liq-h-5 liq-border-[3px] liq-border-neutral-850 liq-rounded-lg"
|
|
299
299
|
}
|
|
@@ -98,7 +98,7 @@ const BridgeAccountDisplay = ({
|
|
|
98
98
|
}, [account.address]);
|
|
99
99
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
100
100
|
account.address && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
101
|
-
/* @__PURE__ */ jsxRuntime.jsx("img", { src: activeChain == null ? void 0 : activeChain.
|
|
101
|
+
/* @__PURE__ */ jsxRuntime.jsx("img", { src: activeChain == null ? void 0 : activeChain.pngUrl, alt: "", className: "liq-w-6" }),
|
|
102
102
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "liq-truncate liq-text-gray-400", children: activeChain == null ? void 0 : activeChain.networkName }),
|
|
103
103
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "liq-ml-[-5px]", children: ":" }),
|
|
104
104
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "liq-flex liq-items-center liq-justify-between", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "liq-flex liq-max-w-[10rem] liq-items-center liq-gap-1", children: [
|
|
@@ -134,7 +134,7 @@ const BridgeAccountDisplay = ({
|
|
|
134
134
|
account.isConnecting ? "Connecting..." : "Connect",
|
|
135
135
|
" "
|
|
136
136
|
] }),
|
|
137
|
-
/* @__PURE__ */ jsxRuntime.jsx("img", { src: activeChain == null ? void 0 : activeChain.
|
|
137
|
+
/* @__PURE__ */ jsxRuntime.jsx("img", { src: activeChain == null ? void 0 : activeChain.pngUrl, alt: "", className: "liq-w-4" }),
|
|
138
138
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "liq-truncate md:liq-text-clip", children: activeChain == null ? void 0 : activeChain.networkName })
|
|
139
139
|
] }) })
|
|
140
140
|
}
|
|
@@ -95,7 +95,7 @@ const BridgeAccountDisplay = ({
|
|
|
95
95
|
}, [account.address]);
|
|
96
96
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
97
97
|
account.address && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
98
|
-
/* @__PURE__ */ jsx("img", { src: activeChain == null ? void 0 : activeChain.
|
|
98
|
+
/* @__PURE__ */ jsx("img", { src: activeChain == null ? void 0 : activeChain.pngUrl, alt: "", className: "liq-w-6" }),
|
|
99
99
|
/* @__PURE__ */ jsx("span", { className: "liq-truncate liq-text-gray-400", children: activeChain == null ? void 0 : activeChain.networkName }),
|
|
100
100
|
/* @__PURE__ */ jsx("span", { className: "liq-ml-[-5px]", children: ":" }),
|
|
101
101
|
/* @__PURE__ */ jsx("div", { className: "liq-flex liq-items-center liq-justify-between", children: /* @__PURE__ */ jsxs("div", { className: "liq-flex liq-max-w-[10rem] liq-items-center liq-gap-1", children: [
|
|
@@ -131,7 +131,7 @@ const BridgeAccountDisplay = ({
|
|
|
131
131
|
account.isConnecting ? "Connecting..." : "Connect",
|
|
132
132
|
" "
|
|
133
133
|
] }),
|
|
134
|
-
/* @__PURE__ */ jsx("img", { src: activeChain == null ? void 0 : activeChain.
|
|
134
|
+
/* @__PURE__ */ jsx("img", { src: activeChain == null ? void 0 : activeChain.pngUrl, alt: "", className: "liq-w-4" }),
|
|
135
135
|
/* @__PURE__ */ jsx("div", { className: "liq-truncate md:liq-text-clip", children: activeChain == null ? void 0 : activeChain.networkName })
|
|
136
136
|
] }) })
|
|
137
137
|
}
|
|
@@ -24,7 +24,8 @@ const ChainSelect = ({
|
|
|
24
24
|
id: chain.chainId.toString(),
|
|
25
25
|
name: chain.chainName,
|
|
26
26
|
networkName: chain.networkName,
|
|
27
|
-
svgUrl: chain.svgUrl
|
|
27
|
+
svgUrl: chain.svgUrl,
|
|
28
|
+
pngUrl: chain.pngUrl
|
|
28
29
|
}
|
|
29
30
|
}));
|
|
30
31
|
if (ignoreAllChains) {
|
|
@@ -37,7 +38,8 @@ const ChainSelect = ({
|
|
|
37
38
|
id: reactjs_constants_chains.ALL_NETWORK_ID,
|
|
38
39
|
name: "all",
|
|
39
40
|
networkName: "All",
|
|
40
|
-
svgUrl: "https://cdn.multiversx.com/liquidity-sdk/all-networks.svg"
|
|
41
|
+
svgUrl: "https://cdn.multiversx.com/liquidity-sdk/all-networks.svg",
|
|
42
|
+
pngUrl: "https://cdn.multiversx.com/liquidity-sdk/all-networks.svg"
|
|
41
43
|
}
|
|
42
44
|
});
|
|
43
45
|
return options;
|
|
@@ -21,7 +21,8 @@ const ChainSelect = ({
|
|
|
21
21
|
id: chain.chainId.toString(),
|
|
22
22
|
name: chain.chainName,
|
|
23
23
|
networkName: chain.networkName,
|
|
24
|
-
svgUrl: chain.svgUrl
|
|
24
|
+
svgUrl: chain.svgUrl,
|
|
25
|
+
pngUrl: chain.pngUrl
|
|
25
26
|
}
|
|
26
27
|
}));
|
|
27
28
|
if (ignoreAllChains) {
|
|
@@ -34,7 +35,8 @@ const ChainSelect = ({
|
|
|
34
35
|
id: ALL_NETWORK_ID,
|
|
35
36
|
name: "all",
|
|
36
37
|
networkName: "All",
|
|
37
|
-
svgUrl: "https://cdn.multiversx.com/liquidity-sdk/all-networks.svg"
|
|
38
|
+
svgUrl: "https://cdn.multiversx.com/liquidity-sdk/all-networks.svg",
|
|
39
|
+
pngUrl: "https://cdn.multiversx.com/liquidity-sdk/all-networks.svg"
|
|
38
40
|
}
|
|
39
41
|
});
|
|
40
42
|
return options;
|
package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.js
CHANGED
|
@@ -15,10 +15,10 @@ const ChainOptionLabel = ({
|
|
|
15
15
|
{
|
|
16
16
|
className: `chain-element liq-flex liq-items-center liq-justify-between`,
|
|
17
17
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "liq-flex liq-flex-row liq-items-center", children: [
|
|
18
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `chain-image liq-mr-2 ${inDropdownClass}`, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "liq-h-6 liq-w-6 liq-flex-shrink-0 liq-overflow-hidden", children: chain.
|
|
18
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `chain-image liq-mr-2 ${inDropdownClass}`, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "liq-h-6 liq-w-6 liq-flex-shrink-0 liq-overflow-hidden", children: chain.pngUrl ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
19
19
|
"img",
|
|
20
20
|
{
|
|
21
|
-
src: chain.
|
|
21
|
+
src: chain.pngUrl ?? reactjs_constants_chains.chainIdentifier[chain.name],
|
|
22
22
|
alt: "",
|
|
23
23
|
loading: "lazy",
|
|
24
24
|
className: "liq-h-full liq-w-full"
|
package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.mjs
CHANGED
|
@@ -12,10 +12,10 @@ const ChainOptionLabel = ({
|
|
|
12
12
|
{
|
|
13
13
|
className: `chain-element liq-flex liq-items-center liq-justify-between`,
|
|
14
14
|
children: /* @__PURE__ */ jsxs("div", { className: "liq-flex liq-flex-row liq-items-center", children: [
|
|
15
|
-
/* @__PURE__ */ jsx("div", { className: `chain-image liq-mr-2 ${inDropdownClass}`, children: /* @__PURE__ */ jsx("div", { className: "liq-h-6 liq-w-6 liq-flex-shrink-0 liq-overflow-hidden", children: chain.
|
|
15
|
+
/* @__PURE__ */ jsx("div", { className: `chain-image liq-mr-2 ${inDropdownClass}`, children: /* @__PURE__ */ jsx("div", { className: "liq-h-6 liq-w-6 liq-flex-shrink-0 liq-overflow-hidden", children: chain.pngUrl ? /* @__PURE__ */ jsx(
|
|
16
16
|
"img",
|
|
17
17
|
{
|
|
18
|
-
src: chain.
|
|
18
|
+
src: chain.pngUrl ?? chainIdentifier[chain.name],
|
|
19
19
|
alt: "",
|
|
20
20
|
loading: "lazy",
|
|
21
21
|
className: "liq-h-full liq-w-full"
|
package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.js
CHANGED
|
@@ -18,10 +18,10 @@ const SelectedChainOption = ({
|
|
|
18
18
|
{
|
|
19
19
|
className: "liq-h-6 liq-w-6 liq-flex liq-justify-between liq-items-center liq-cursor-pointer",
|
|
20
20
|
onClick: onMenuOpen,
|
|
21
|
-
children: (chain == null ? void 0 : chain.
|
|
21
|
+
children: (chain == null ? void 0 : chain.pngUrl) ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
22
22
|
"img",
|
|
23
23
|
{
|
|
24
|
-
src: chain.
|
|
24
|
+
src: chain.pngUrl ?? reactjs_constants_chains.chainIdentifier[chain.name],
|
|
25
25
|
alt: "",
|
|
26
26
|
loading: "lazy",
|
|
27
27
|
className: "liq-h-full liq-w-full"
|
package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.mjs
CHANGED
|
@@ -15,10 +15,10 @@ const SelectedChainOption = ({
|
|
|
15
15
|
{
|
|
16
16
|
className: "liq-h-6 liq-w-6 liq-flex liq-justify-between liq-items-center liq-cursor-pointer",
|
|
17
17
|
onClick: onMenuOpen,
|
|
18
|
-
children: (chain == null ? void 0 : chain.
|
|
18
|
+
children: (chain == null ? void 0 : chain.pngUrl) ? /* @__PURE__ */ jsx(
|
|
19
19
|
"img",
|
|
20
20
|
{
|
|
21
|
-
src: chain.
|
|
21
|
+
src: chain.pngUrl ?? chainIdentifier[chain.name],
|
|
22
22
|
alt: "",
|
|
23
23
|
loading: "lazy",
|
|
24
24
|
className: "liq-h-full liq-w-full"
|
|
@@ -17,10 +17,10 @@ const TokenIcon = ({
|
|
|
17
17
|
if (!assetTicker || !token) {
|
|
18
18
|
return /* @__PURE__ */ jsxRuntime.jsx("img", { src: _default.DefaultIcon, alt: "" });
|
|
19
19
|
}
|
|
20
|
-
return token.
|
|
20
|
+
return token.pngUrl && token.pngUrl !== "" ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21
21
|
"img",
|
|
22
22
|
{
|
|
23
|
-
src: token.
|
|
23
|
+
src: token.pngUrl,
|
|
24
24
|
alt: "",
|
|
25
25
|
className: "liq-asset-icon liq-sm liq-p-0"
|
|
26
26
|
}
|
|
@@ -14,10 +14,10 @@ const TokenIcon = ({
|
|
|
14
14
|
if (!assetTicker || !token) {
|
|
15
15
|
return /* @__PURE__ */ jsx("img", { src: DefaultIcon, alt: "" });
|
|
16
16
|
}
|
|
17
|
-
return token.
|
|
17
|
+
return token.pngUrl && token.pngUrl !== "" ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
18
18
|
"img",
|
|
19
19
|
{
|
|
20
|
-
src: token.
|
|
20
|
+
src: token.pngUrl,
|
|
21
21
|
alt: "",
|
|
22
22
|
className: "liq-asset-icon liq-sm liq-p-0"
|
|
23
23
|
}
|
|
@@ -15,7 +15,7 @@ const useResolveTokenChain = ({ token }) => {
|
|
|
15
15
|
return {
|
|
16
16
|
tokenChain,
|
|
17
17
|
isLoading,
|
|
18
|
-
chainIcon: tokenChain ? tokenChain.
|
|
18
|
+
chainIcon: tokenChain ? tokenChain.pngUrl ?? reactjs_constants_chains.chainIdentifier[tokenChain.chainName] : null
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
exports.useResolveTokenChain = useResolveTokenChain;
|
|
@@ -12,7 +12,7 @@ const useResolveTokenChain = ({ token }) => {
|
|
|
12
12
|
return {
|
|
13
13
|
tokenChain,
|
|
14
14
|
isLoading,
|
|
15
|
-
chainIcon: tokenChain ? tokenChain.
|
|
15
|
+
chainIcon: tokenChain ? tokenChain.pngUrl ?? chainIdentifier[tokenChain.chainName] : null
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
export {
|