Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
</p>

<div class="mt-4 flex w-full flex-col gap-3 sm:flex-row">
<EarningPotentialCard />
<EarningPositionCard />
<EarningPotentialCard />
</div>
{/snippet}
</StakeContentSection>
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
{#if nonNullish(yearlyAmount)}
<span
class="whitespace-nowrap"
class:text-error-primary={!formatPositiveAmount}
class:text-brand-primary={!formatPositiveAmount}
class:text-success-primary={formatPositiveAmount && nonNullish(value) && value > 0}
class:text-tertiary={value === 0}
in:fade
Expand Down
14 changes: 7 additions & 7 deletions src/frontend/src/lib/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1805,7 +1805,7 @@
"tab_title": "Earning",
"earning_opportunities": "Earning opportunities",
"header_title": "Welcome to Earn!",
"header_description": "Grow your crypto portfolio by staking your tokens and earning rewards. Choose from various earning strategies based on your risk tolerance.",
"header_description": "Grow your digital assets portfolio by allocating your tokens to earning opportunities.",
"go_to_earn": "Go to Earn"
},
"cards": {
Expand All @@ -1824,8 +1824,8 @@
"card_fields": {
"apy": "APY",
"currentStaked": "Staked",
"currentEarning": "Actively earning",
"earningPotential": "Missing earning potential",
"currentEarning": "Currently earning",
"earningPotential": "Additional earning potential",
"terms": "Terms"
},
"terms": {
Expand Down Expand Up @@ -1854,12 +1854,12 @@
"executing_transaction": "Executing transaction...",
"unsupported_token_staking": "Staking for the selected token is not supported.",
"provider": "Staking terms provided by $provider",
"earning_potential": "Missing earning potential",
"earning_potential": "Additional earning potential",
"earning_potential_hint": "Based on the value of your not invested assets and the highest APY of the available earning opportunities.",
"active_earning": "Actively earning",
"active_earning": "Currently earning",
"active_earning_per_year": "$amount/year",
"unproductive_assets": "Unproductive assets",
"invested_assets": "Invested assets",
"unproductive_assets": "Available",
"invested_assets": "Allocated",
"visit_provider": "Visit website",
"current_apy_label": "Current APY",
"stake_review_subtitle": "You stake",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe('EarningYearlyAmount', () => {

const span = container.querySelector('span');

expect(span).toHaveClass('text-error-primary');
expect(span).toHaveClass('text-brand-primary');
});

it('applies text-tertiary when formatPositiveAmount is true but amount is 0', () => {
Expand Down
Loading