Skip to content

Commit 30acdcd

Browse files
committed
Update PriceCard and R1 minted last epoch card
1 parent 492c003 commit 30acdcd

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

app/loading.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Skeleton } from '@heroui/skeleton';
33
export default function Loading() {
44
return (
55
<div className="responsive-col">
6-
<Skeleton className="min-h-[180px] w-full rounded-2xl" />
6+
<Skeleton className="min-h-[268px] w-full rounded-2xl" />
77

88
<div className="col w-full gap-2">
99
<Skeleton className="only-lg min-h-[56px] w-full rounded-2xl" />

app/server-components/Nodes/Hero.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import HeroEpochCard from '@/components/Hero/HeroEpochCard';
2+
import { Skeleton } from '@heroui/skeleton';
3+
import { Suspense } from 'react';
4+
import R1MintedLastEpoch from '../R1MintedLastEpoch';
25
import { BorderedCard } from '../shared/cards/BorderedCard';
36
import { CardHorizontal } from '../shared/cards/CardHorizontal';
47
import R1TotalSupply from '../shared/R1TotalSupply';
@@ -23,7 +26,7 @@ export default async function Hero({ nodesTotalItems }) {
2326
widthClasses="min-[420px]:min-w-[346px]"
2427
/>
2528

26-
{/* <Suspense fallback={<Skeleton className="min-h-[76px] w-full rounded-xl md:max-w-[380px]" />}>
29+
<Suspense fallback={<Skeleton className="min-h-[76px] w-full rounded-xl md:max-w-[380px]" />}>
2730
<CardHorizontal
2831
label={
2932
<div>
@@ -34,7 +37,7 @@ export default async function Hero({ nodesTotalItems }) {
3437
isFlexible
3538
widthClasses="min-w-[254px]"
3639
/>
37-
</Suspense> */}
40+
</Suspense>
3841

3942
<HeroEpochCard />
4043
</div>

app/server-components/TopBar.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import * as types from '@/typedefs/blockchain';
55
import { lazy } from 'react';
66
import { RiCpuLine } from 'react-icons/ri';
77
import { RowWithIcon } from './shared/cards/RowWithIcon';
8+
import PriceCard from './shared/PriceCard';
89

910
const LazyTopBarEpochCard = lazy(() => import('@/components/TopBarEpochCard'));
1011

@@ -28,8 +29,7 @@ export default async function TopBar() {
2829
<div className="hidden flex-wrap items-center justify-between gap-2 sm:flex lg:flex-nowrap lg:justify-end lg:gap-3">
2930
<LazyTopBarEpochCard />
3031

31-
{/* TODO: Add */}
32-
{/* <PriceCard /> */}
32+
<PriceCard />
3333

3434
<CardWithIcon icon={<RiCpuLine />} label="Active Nodes">
3535
{activeNodes.result.nodes_total_items}
@@ -39,8 +39,7 @@ export default async function TopBar() {
3939
<div className="flex w-full flex-col gap-1.5 rounded-xl bg-slate-100 px-4 py-4 sm:hidden">
4040
<LazyTopBarEpochCard />
4141

42-
{/* TODO: Add */}
43-
{/* <PriceCard /> */}
42+
<PriceCard />
4443

4544
<RowWithIcon icon={<RiCpuLine />} label="Active Nodes">
4645
{activeNodes.result.nodes_total_items}

0 commit comments

Comments
 (0)