@deframe-sdk/components 0.1.40 → 0.1.42
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.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5729,7 +5729,7 @@ var ChooseAnAssetSwapView = ({
|
|
|
5729
5729
|
displayedTokens.map((token, index) => {
|
|
5730
5730
|
const balance = findBalance == null ? void 0 : findBalance(token);
|
|
5731
5731
|
const priceUSD = Number(balance == null ? void 0 : balance.priceUSD) || token.priceInUSD || 0;
|
|
5732
|
-
const formattedBalance = (balance == null ? void 0 : balance.amountUI) ? formatTokenAmount(balance.amountUI, priceUSD
|
|
5732
|
+
const formattedBalance = (balance == null ? void 0 : balance.amountUI) ? formatTokenAmount(balance.amountUI, priceUSD) : "0";
|
|
5733
5733
|
return /* @__PURE__ */ jsxs(
|
|
5734
5734
|
ListItem,
|
|
5735
5735
|
{
|
|
@@ -8059,9 +8059,9 @@ function AssetRowInline({
|
|
|
8059
8059
|
onKeyDown,
|
|
8060
8060
|
index
|
|
8061
8061
|
}) {
|
|
8062
|
-
var _a;
|
|
8063
8062
|
const hasBalance = !!balance && parseFloat(balance.amountInUSD) >= 0.01;
|
|
8064
|
-
const
|
|
8063
|
+
const priceUSD = Number(balance == null ? void 0 : balance.priceUSD) || token.priceInUSD || 0;
|
|
8064
|
+
const formattedAmount = balance ? formatTokenAmount(balance.amountUI, priceUSD) : void 0;
|
|
8065
8065
|
const formattedUsd = balance ? formatCurrencyValue(parseFloat(balance.amountInUSD)) : void 0;
|
|
8066
8066
|
const baseClasses = [
|
|
8067
8067
|
"group",
|
|
@@ -11953,7 +11953,7 @@ var EarnDepositFormViewSimple = ({
|
|
|
11953
11953
|
].join(" "),
|
|
11954
11954
|
onClick: onBack,
|
|
11955
11955
|
"aria-label": "Cancel deposit",
|
|
11956
|
-
children: "
|
|
11956
|
+
children: "Cancelar"
|
|
11957
11957
|
}
|
|
11958
11958
|
),
|
|
11959
11959
|
/* @__PURE__ */ jsx(
|
|
@@ -12431,7 +12431,7 @@ var EarnWithdrawFormViewSimple = ({
|
|
|
12431
12431
|
].join(" "),
|
|
12432
12432
|
onClick: onBack,
|
|
12433
12433
|
"aria-label": "Cancel withdrawal",
|
|
12434
|
-
children: "
|
|
12434
|
+
children: "Cancelar"
|
|
12435
12435
|
}
|
|
12436
12436
|
),
|
|
12437
12437
|
/* @__PURE__ */ jsx(
|