@deframe-sdk/components 0.1.43 → 0.1.45
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.js +3 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -6
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10145,10 +10145,7 @@ var EarnDesktopViewSimple = ({
|
|
|
10145
10145
|
className
|
|
10146
10146
|
}) => {
|
|
10147
10147
|
const [activeCategoryId, setActiveCategoryId] = React6__namespace.default.useState(null);
|
|
10148
|
-
const totalEarnings =
|
|
10149
|
-
() => positions.positions.reduce((sum, p) => sum + p.spotPosition.profitInUSD, 0),
|
|
10150
|
-
[positions.positions]
|
|
10151
|
-
);
|
|
10148
|
+
const totalEarnings = positions.summary.totalProfitInUSD;
|
|
10152
10149
|
const statsCards = React6__namespace.default.useMemo(() => [
|
|
10153
10150
|
{ label: "Total Investido", value: formatCurrency(positions.summary.totalUnderlyingBalanceUSD), badge: "Soma de todos os dep\xF3sitos ativos." },
|
|
10154
10151
|
{ label: "Juros Acumulados", value: formatCurrency(totalEarnings), badge: "Rendimentos acumulados desde o in\xEDcio." }
|
|
@@ -18265,8 +18262,8 @@ function AssetTrendBadge({ direction, value, className }) {
|
|
|
18265
18262
|
{
|
|
18266
18263
|
"data-test-id": "asset-trend-badge",
|
|
18267
18264
|
className: tailwindMerge.twMerge(
|
|
18268
|
-
"inline-flex items-center gap-[var(--deframe-widget-size-gap-xs)]",
|
|
18269
|
-
"px-[var(--deframe-widget-size-padding-x-sm)] py-[var(--deframe-widget-size-padding-y-xs)]",
|
|
18265
|
+
"inline-flex items-center justify-center gap-[var(--deframe-widget-size-gap-xs)]",
|
|
18266
|
+
"min-w-[110px] px-[var(--deframe-widget-size-padding-x-sm)] py-[var(--deframe-widget-size-padding-y-xs)]",
|
|
18270
18267
|
"rounded-[var(--deframe-widget-size-radius-full)] border",
|
|
18271
18268
|
"text-[length:var(--deframe-widget-font-size-xs)] [font-weight:var(--deframe-widget-font-weight-medium)] leading-[var(--deframe-widget-font-leading-xs)]",
|
|
18272
18269
|
"font-[var(--deframe-widget-font-family)]",
|