Skip to content

Commit 2bb3040

Browse files
committed
updated icons and card descriptions
1 parent a17c0ed commit 2bb3040

File tree

1 file changed

+20
-49
lines changed
  • apps/dashboard/src/app/(app)/(dashboard)/support

1 file changed

+20
-49
lines changed

apps/dashboard/src/app/(app)/(dashboard)/support/page.tsx

Lines changed: 20 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ import { getTeams } from "@/api/team";
22
import { Button } from "@/components/ui/button";
33
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
44
import { BookOpenIcon, ChevronRightIcon } from "lucide-react";
5+
import { HomeIcon, WalletIcon } from "lucide-react";
56
import type { Metadata } from "next";
67
import Link from "next/link";
7-
import { BridgeIcon } from "../../../../../../portal/src/icons/products/BridgeIcon";
8-
import { ConnectIcon } from "../../../../../../portal/src/icons/products/ConnectIcon";
9-
import { EngineIcon } from "../../../../../../portal/src/icons/products/EngineIcon";
10-
import { InsightIcon } from "../../../../../../portal/src/icons/products/InsightIcon";
11-
import { NebulaIcon } from "../../../../../../portal/src/icons/products/NebulaIcon";
12-
import { PlaygroundIcon } from "../../../../../../portal/src/icons/products/PlaygroundIcon";
8+
import { EngineIcon } from "../../(dashboard)/(chain)/components/server/icons/EngineIcon";
9+
import { InsightIcon } from "../../(dashboard)/(chain)/components/server/icons/InsightIcon";
10+
import { PayIcon } from "../../(dashboard)/(chain)/components/server/icons/PayIcon";
1311
import { CustomChatButton } from "../../../nebula-app/(app)/components/CustomChat/CustomChatButton";
12+
import { NebulaIcon } from "../../../nebula-app/(app)/icons/NebulaIcon";
1413
import {
1514
getAuthToken,
1615
getAuthTokenWalletAddress,
@@ -25,64 +24,40 @@ export const metadata: Metadata = {
2524
const HELP_PRODUCTS = [
2625
{
2726
title: "Playground",
28-
icon: PlaygroundIcon,
27+
icon: HomeIcon,
2928
viewAllUrl:
3029
"https://playground.thirdweb.com/connect/sign-in/button?tab=code",
31-
helpArticles: [
32-
{
33-
title: "Try out our interactive playground to get started",
34-
},
35-
],
30+
description: "Try out our interactive playground to get started",
3631
},
3732
{
3833
title: "Connect",
39-
icon: ConnectIcon,
34+
icon: WalletIcon,
4035
viewAllUrl: "https://portal.thirdweb.com/connect",
41-
helpArticles: [
42-
{
43-
title: "Wallets, auth, and onchain interactions",
44-
},
45-
],
36+
description: "Wallets, auth, and onchain interactions",
4637
},
4738
{
4839
title: "Universal Bridge",
49-
icon: BridgeIcon,
40+
icon: PayIcon,
5041
viewAllUrl: "https://portal.thirdweb.com/pay",
51-
helpArticles: [
52-
{
53-
title: "Bridge and onramp tokens on any chain",
54-
},
55-
],
42+
description: "Bridge and onramp tokens on any chain",
5643
},
5744
{
5845
title: "Engine",
5946
icon: EngineIcon,
6047
viewAllUrl: "https://portal.thirdweb.com/engine/v3",
61-
helpArticles: [
62-
{
63-
title: "Reliable transactions and monitoring",
64-
},
65-
],
48+
description: "Reliable transactions and monitoring",
6649
},
6750
{
6851
title: "Insight",
6952
icon: InsightIcon,
7053
viewAllUrl: "https://portal.thirdweb.com/insight",
71-
helpArticles: [
72-
{
73-
title: "Blockchain data queries and transformations",
74-
},
75-
],
54+
description: "Blockchain data queries and transformations",
7655
},
7756
{
7857
title: "Nebula",
7958
icon: NebulaIcon,
8059
viewAllUrl: "https://portal.thirdweb.com/nebula",
81-
helpArticles: [
82-
{
83-
title: "API interface for LLMs",
84-
},
85-
],
60+
description: "API interface for LLMs",
8661
},
8762
] as const;
8863

@@ -169,16 +144,12 @@ export default async function SupportPage() {
169144
</Button>
170145
</CardHeader>
171146

172-
<CardContent>
173-
<ul className="flex flex-col gap-1">
174-
{product.helpArticles.map((article) => (
175-
<li key={article.title}>
176-
<span className="text-muted-foreground text-sm">
177-
{article.title}
178-
</span>
179-
</li>
180-
))}
181-
</ul>
147+
<CardContent key={product.description}>
148+
{product.description && (
149+
<p className="mb-2 text-muted-foreground text-sm">
150+
{product.description}
151+
</p>
152+
)}
182153
</CardContent>
183154
</Card>
184155
))}

0 commit comments

Comments
 (0)