feat: 3-state staking score UI with cached data support

This commit is contained in:
2026-02-17 01:56:49 +03:00
parent 0f63c96b2c
commit 9b97c63a26
12 changed files with 71 additions and 13 deletions
+10 -4
View File
@@ -609,10 +609,16 @@ export function RewardsSection() {
</div>
<p className="text-2xl font-bold text-blue-400">
{stakingStatus?.isTracking ? (
<span className="flex items-center gap-1">
<Clock className="w-4 h-4" />
{formatDuration(stakingStatus.durationBlocks)}
</span>
stakingStatus.hasCachedData ? (
<span className="flex items-center gap-1">
<Clock className="w-4 h-4" />
{formatDuration(stakingStatus.durationBlocks)}
</span>
) : (
<span className="text-sm text-yellow-400">
{t('rewards.stakingWaitingData')}
</span>
)
) : (
<span className="text-sm text-muted-foreground">
{t('rewards.stakingNotStarted')}