File tree Expand file tree Collapse file tree 2 files changed +49
-0
lines changed
apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/(chainPage) Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ "use client" ;
2+ import { useTrack } from "hooks/analytics/useTrack" ;
3+ import { FileText } from "lucide-react" ;
4+ import Link from "next/link" ;
5+ import type { ChainMetadata } from "thirdweb/chains" ;
6+ import { SectionTitle } from "../server/SectionTitle" ;
7+
8+ export default function NextSteps ( props : { chain : ChainMetadata } ) {
9+ const { chain } = props ;
10+ const trackEvent = useTrack ( ) ;
11+
12+ return (
13+ < section >
14+ < SectionTitle title = "Next Steps" />
15+ < div className = "grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3" >
16+ < div className = "relative flex gap-3 rounded-lg border bg-card p-4 pr-8 transition-colors hover:border-active-border" >
17+ < FileText className = "mt-0.5 size-5 shrink-0" />
18+ < div >
19+ < h3 className = "mb-1.5 font-medium" >
20+ < Link
21+ href = {
22+ "https://blog.thirdweb.com/supercharge-user-adoption-integrate-embedded-wallets-in-minutes/"
23+ }
24+ className = "before:absolute before:inset-0"
25+ target = "_blank"
26+ onClick = { ( ) =>
27+ trackEvent ( {
28+ category : "nextSteps" ,
29+ action : "click-inapp" ,
30+ label : "success" ,
31+ chain_id : chain . chainId ,
32+ } )
33+ }
34+ >
35+ Create a login for { chain . name }
36+ </ Link >
37+ </ h3 >
38+ < p className = "text-muted-foreground text-sm" >
39+ Supercharge User Adoption—Integrate In-App Wallets in Minutes
40+ </ p >
41+ </ div >
42+ </ div >
43+ </ div >
44+ </ section >
45+ ) ;
46+ }
Original file line number Diff line number Diff line change 11import { CircleAlertIcon } from "lucide-react" ;
22import { getRawAccount } from "../../../../account/settings/getAccount" ;
33import { getChain , getChainMetadata } from "../../utils" ;
4+ import NextSteps from "./components/client/NextSteps" ;
45import { BuyFundsSection } from "./components/server/BuyFundsSection" ;
56import { ChainOverviewSection } from "./components/server/ChainOverviewSection" ;
67import { ClaimChainSection } from "./components/server/ClaimChainSection" ;
@@ -57,6 +58,8 @@ export default async function Page(props: {
5758 { chain . services . filter ( ( s ) => s . enabled ) . length > 0 && (
5859 < SupportedProductsSection services = { chain . services } />
5960 ) }
61+ { /*Next Steps */ }
62+ < NextSteps chain = { chain } />
6063
6164 { /* Claim Chain */ }
6265 { ! chainMetadata && < ClaimChainSection /> }
You can’t perform that action at this time.
0 commit comments