@swype-org/react-sdk 0.1.161 → 0.1.163
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/index.cjs +2 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1776,8 +1776,8 @@ function buildSelectSourceChoices(options) {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
return chainChoices.map((chain) => ({
|
|
1778
1778
|
...chain,
|
|
1779
|
-
tokens: chain.tokens.filter((t) => t.balance > 0)
|
|
1780
|
-
})).filter((chain) => chain.tokens.length > 0);
|
|
1779
|
+
tokens: chain.tokens.filter((t) => t.balance > 0).sort((a, b) => b.balance - a.balance)
|
|
1780
|
+
})).filter((chain) => chain.tokens.length > 0).sort((a, b) => b.balance - a.balance);
|
|
1781
1781
|
}
|
|
1782
1782
|
|
|
1783
1783
|
// src/paymentReducer.ts
|
|
@@ -4222,12 +4222,6 @@ function DepositScreen({
|
|
|
4222
4222
|
"Deposit $",
|
|
4223
4223
|
amount.toFixed(2)
|
|
4224
4224
|
] }) }),
|
|
4225
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { style: routeStyle(tokens.textMuted), children: [
|
|
4226
|
-
"From ",
|
|
4227
|
-
sourceName,
|
|
4228
|
-
" ",
|
|
4229
|
-
merchantName ? `\u2192 ${merchantName}` : ""
|
|
4230
|
-
] }),
|
|
4231
4225
|
/* @__PURE__ */ jsxRuntime.jsx(PoweredByFooter, {})
|
|
4232
4226
|
] }),
|
|
4233
4227
|
children: [
|
|
@@ -4374,12 +4368,6 @@ var limitExceededHintStyle = (color) => ({
|
|
|
4374
4368
|
margin: "12px 0 2px",
|
|
4375
4369
|
lineHeight: 1.5
|
|
4376
4370
|
});
|
|
4377
|
-
var routeStyle = (color) => ({
|
|
4378
|
-
textAlign: "center",
|
|
4379
|
-
fontSize: "0.75rem",
|
|
4380
|
-
color,
|
|
4381
|
-
margin: "0 0 4px"
|
|
4382
|
-
});
|
|
4383
4371
|
var switchHintStyle = (color) => ({
|
|
4384
4372
|
textAlign: "center",
|
|
4385
4373
|
fontSize: "0.8rem",
|