@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.mjs
CHANGED
|
@@ -10121,10 +10121,7 @@ var EarnDesktopViewSimple = ({
|
|
|
10121
10121
|
className
|
|
10122
10122
|
}) => {
|
|
10123
10123
|
const [activeCategoryId, setActiveCategoryId] = React6__default.useState(null);
|
|
10124
|
-
const totalEarnings =
|
|
10125
|
-
() => positions.positions.reduce((sum, p) => sum + p.spotPosition.profitInUSD, 0),
|
|
10126
|
-
[positions.positions]
|
|
10127
|
-
);
|
|
10124
|
+
const totalEarnings = positions.summary.totalProfitInUSD;
|
|
10128
10125
|
const statsCards = React6__default.useMemo(() => [
|
|
10129
10126
|
{ label: "Total Investido", value: formatCurrency(positions.summary.totalUnderlyingBalanceUSD), badge: "Soma de todos os dep\xF3sitos ativos." },
|
|
10130
10127
|
{ label: "Juros Acumulados", value: formatCurrency(totalEarnings), badge: "Rendimentos acumulados desde o in\xEDcio." }
|
|
@@ -18241,8 +18238,8 @@ function AssetTrendBadge({ direction, value, className }) {
|
|
|
18241
18238
|
{
|
|
18242
18239
|
"data-test-id": "asset-trend-badge",
|
|
18243
18240
|
className: twMerge(
|
|
18244
|
-
"inline-flex items-center gap-[var(--deframe-widget-size-gap-xs)]",
|
|
18245
|
-
"px-[var(--deframe-widget-size-padding-x-sm)] py-[var(--deframe-widget-size-padding-y-xs)]",
|
|
18241
|
+
"inline-flex items-center justify-center gap-[var(--deframe-widget-size-gap-xs)]",
|
|
18242
|
+
"min-w-[110px] px-[var(--deframe-widget-size-padding-x-sm)] py-[var(--deframe-widget-size-padding-y-xs)]",
|
|
18246
18243
|
"rounded-[var(--deframe-widget-size-radius-full)] border",
|
|
18247
18244
|
"text-[length:var(--deframe-widget-font-size-xs)] [font-weight:var(--deframe-widget-font-weight-medium)] leading-[var(--deframe-widget-font-leading-xs)]",
|
|
18248
18245
|
"font-[var(--deframe-widget-font-family)]",
|