Skip to content

Commit da5044f

Browse files
committed
feat: add disclaimer
1 parent cdbb2d1 commit da5044f

File tree

2 files changed

+29
-28
lines changed

2 files changed

+29
-28
lines changed

apps/nextjs/src/app/_components/protocols.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export async function Protocols({ address }: { address: string }) {
3434
export function ProtocolsSkeleton() {
3535
return (
3636
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 w-full">
37-
{Array.from({ length: 3 }).map((_, index) => (
37+
{Array.from({ length: 2 }).map((_, index) => (
3838
// biome-ignore lint/suspicious/noArrayIndexKey: <explanation>
3939
<Skeleton key={index} className="bg-input h-96 w-full rounded-md" />
4040
))}

apps/nextjs/src/app/address/[address]/page.tsx

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
11
import { Badge } from "@acme/ui/badge";
2-
import { Button, buttonVariants } from "@acme/ui/button";
3-
import { Copy, ExternalLink, Eye } from "lucide-react";
2+
import { Info } from "lucide-react";
43
import { HypePoints } from "~/app/_components/hype-points";
54
import { Protocols, ProtocolsSkeleton } from "~/app/_components/protocols";
65
import { isAddress } from "viem";
76
import { notFound } from "next/navigation";
87
import { Suspense } from "react";
9-
import { cn } from "@acme/ui";
10-
import {
11-
Dialog,
12-
DialogContent,
13-
DialogHeader,
14-
DialogTitle,
15-
DialogDescription,
16-
DialogFooter,
17-
DialogTrigger,
18-
} from "@acme/ui/dialog";
19-
import Link from "next/link";
8+
209
import Image from "next/image";
2110
import { Address } from "./_components/address";
2211
import { Actions } from "./_components/actions";
12+
import { Alert, AlertDescription, AlertTitle } from "@acme/ui/alert";
2313

2414
export default async function AddressPage({
2515
params,
@@ -33,20 +23,31 @@ export default async function AddressPage({
3323
return (
3424
<main className="container h-screen py-12">
3525
<div className="flex flex-col items-center justify-center gap-6">
36-
<div className="flex flex-row gap-3 w-full justify-start items-center">
37-
<h1 className="text-2xl font-semibold text-foreground">
38-
Address Overview
39-
</h1>
40-
<Badge variant="outline" className="rounded-full space-x-2">
41-
<Image
42-
src="/hype.png"
43-
alt="HyperEvm"
44-
width={16}
45-
height={16}
46-
className="rounded-full"
47-
/>
48-
<span className="text-sm font-medium">HyperEVM</span>
49-
</Badge>
26+
<div className="flex flex-row gap-3 w-full justify-between items-center">
27+
<div className="flex flex-row gap-3 items-center">
28+
<h1 className="text-2xl font-semibold text-foreground">
29+
Address Overview
30+
</h1>
31+
<Badge variant="outline" className="rounded-full space-x-2">
32+
<Image
33+
src="/hype.png"
34+
alt="HyperEvm"
35+
width={16}
36+
height={16}
37+
className="rounded-full"
38+
/>
39+
<span className="text-sm font-medium">HyperEVM</span>
40+
</Badge>
41+
</div>
42+
<Alert className="max-w-lg">
43+
<Info className="w-4 h-4" />
44+
<AlertTitle className="font-semibold">Disclaimer</AlertTitle>
45+
<AlertDescription className="text-muted-foreground text-balance">
46+
Some protocols may arise issues with their API which will be fixed
47+
as soon as possible. More protocols will be added in the near
48+
future.
49+
</AlertDescription>
50+
</Alert>
5051
</div>
5152
<div className="flex flex-row gap-3 w-full justify-between items-center">
5253
<Address address={address} />

0 commit comments

Comments
 (0)