mirror of
https://github.com/pezkuwichain/pezkuwi-telegram-miniapp.git
synced 2026-06-22 07:51:11 +00:00
feat: 3-state staking score UI with cached data support
This commit is contained in:
@@ -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')}
|
||||
|
||||
Reference in New Issue
Block a user