Skip to content

Commit

Permalink
release v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mingfunwong committed Jun 1, 2023
1 parent 24e6ebd commit 4708e2d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 40 deletions.
76 changes: 37 additions & 39 deletions app/[chainSlug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,45 +100,43 @@ export default function DashboardPage() {
</span>
</div>

<div className="overflow-auto rounded-lg border bg-card px-6 pb-6 text-card-foreground shadow-sm">
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-4">
<Card>
<CardHeader className="flex flex-row items-center space-y-0 pb-2">
<CardTitle className="text-sm font-medium">Block</CardTitle>
</CardHeader>
<CardContent>
<div ref={countUpRef} className="text-2xl font-bold"></div>
</CardContent>
</Card>
<Card>
<CardHeader className="flex flex-row items-center space-y-0 pb-2">
<CardTitle className="text-sm font-medium">Producer</CardTitle>
</CardHeader>
<CardContent>
<div className="text-2xl font-bold">
{info?.head_block_producer || "-"}
</div>
</CardContent>
</Card>
<Card>
<CardHeader className="flex flex-row items-center space-y-0 pb-2">
<CardTitle className="text-sm font-medium">RAM Price</CardTitle>
</CardHeader>
<CardContent>
<div className="text-2xl font-bold">
{ramMarketString} {currentChain.symbol} / MB
</div>
</CardContent>
</Card>
<Card>
<CardHeader className="flex flex-row items-center space-y-0 pb-2">
<CardTitle className="text-sm font-medium">RAM Used</CardTitle>
</CardHeader>
<CardContent>
<div className="text-2xl font-bold">{ramUsed} GB</div>
</CardContent>
</Card>
</div>
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-4">
<Card>
<CardHeader className="flex flex-row items-center space-y-0 pb-2">
<CardTitle className="text-sm font-medium">Block</CardTitle>
</CardHeader>
<CardContent>
<div ref={countUpRef} className="text-2xl font-bold"></div>
</CardContent>
</Card>
<Card>
<CardHeader className="flex flex-row items-center space-y-0 pb-2">
<CardTitle className="text-sm font-medium">Producer</CardTitle>
</CardHeader>
<CardContent>
<div className="text-2xl font-bold">
{info?.head_block_producer || "-"}
</div>
</CardContent>
</Card>
<Card>
<CardHeader className="flex flex-row items-center space-y-0 pb-2">
<CardTitle className="text-sm font-medium">RAM Price</CardTitle>
</CardHeader>
<CardContent>
<div className="text-2xl font-bold">
{ramMarketString} {currentChain.symbol} / MB
</div>
</CardContent>
</Card>
<Card>
<CardHeader className="flex flex-row items-center space-y-0 pb-2">
<CardTitle className="text-sm font-medium">RAM Used</CardTitle>
</CardHeader>
<CardContent>
<div className="text-2xl font-bold">{ramUsed} GB</div>
</CardContent>
</Card>
</div>

<div className="grid gap-12 lg:grid-cols-8">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chain-moe",
"version": "2.0.0",
"version": "2.1.0",
"license": "Apache-2.0",
"scripts": {
"dev": "next dev",
Expand Down

1 comment on commit 4708e2d

@vercel
Copy link

@vercel vercel bot commented on 4708e2d Jun 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.