@@ -52,6 +52,7 @@ import type { Case, EcosystemPlayer, Feature } from "./types"
52
52
import { parseActivity } from "./utils"
53
53
54
54
import { fetchEthereumStablecoinsMcap } from "@/lib/api/fetchEthereumStablecoinsMcap"
55
+ import { fetchGrowThePie } from "@/lib/api/fetchGrowThePie"
55
56
import EthGlyph from "@/public/images/assets/svgs/eth-diamond-rainbow.svg"
56
57
import heroImage from "@/public/images/heroes/enterprise-hero-white.png"
57
58
@@ -67,7 +68,10 @@ const CasesSwiper = dynamic(() => import("./_components/CasesSwiper"), {
67
68
68
69
// TODO: Switch back to this for cache and mock-data dev fallback
69
70
// const loadData = dataLoader(
70
- // [["ethereumStablecoinsResponse", fetchEthereumStablecoinsMcap]],
71
+ // [
72
+ // ["ethereumStablecoinsResponse", fetchEthereumStablecoinsMcap],
73
+ // ["growThePieData", fetchGrowThePie],
74
+ // ],
71
75
// BASE_TIME_UNIT * 1000
72
76
// )
73
77
@@ -76,13 +80,14 @@ const Page = async ({ params }: { params: Promise<{ locale: Lang }> }) => {
76
80
77
81
const t = await getTranslations ( { locale, namespace : "page-enterprise" } )
78
82
79
- // const [ethereumStablecoinsResponse] = await loadData()
80
- const ethereumStablecoinsResponse = await fetchEthereumStablecoinsMcap ( )
83
+ // const [{ txCount }, ethereumStablecoinsResponse] = await loadData()
84
+ const { txCount } = await fetchGrowThePie ( )
85
+ const stablecoinMarketCap = await fetchEthereumStablecoinsMcap ( )
81
86
82
87
const metrics = await parseActivity (
83
88
{
84
- // dailyTxCount ,
85
- stablecoinMarketCap : ethereumStablecoinsResponse ,
89
+ txCount ,
90
+ stablecoinMarketCap,
86
91
// totalCapitalSecured,
87
92
} ,
88
93
locale
@@ -161,9 +166,13 @@ const Page = async ({ params }: { params: Promise<{ locale: Lang }> }) => {
161
166
) ,
162
167
} ,
163
168
{
164
- name : "TODO: New Item" ,
165
- content :
166
- "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." ,
169
+ name : "Visa" ,
170
+ content : (
171
+ < >
172
+ Settled over < strong > $225 million</ strong > in stablecoin transactions
173
+ using USDC across Ethereum and other blockchains.
174
+ </ >
175
+ ) ,
167
176
} ,
168
177
]
169
178
@@ -281,19 +290,14 @@ const Page = async ({ params }: { params: Promise<{ locale: Lang }> }) => {
281
290
metrics = { metrics }
282
291
locale = { locale }
283
292
className = { cn (
293
+ metrics . length < 2 && "hidden" , // Minimum before displaying
284
294
"w-fit max-w-xl shrink-0 gap-8 sm:max-md:grid-cols-2" ,
285
295
"[&_[data-label='big-number']]:border-none [&_[data-label='big-number']]:p-0" ,
286
296
"[&_[data-label='big-number']:nth-of-type(1)_[data-label='value']]:text-accent-a" ,
287
297
"[&_[data-label='big-number']:nth-of-type(2)_[data-label='value']]:text-accent-b" ,
288
298
"[&_[data-label='big-number']:nth-of-type(3)_[data-label='value']]:text-accent-c"
289
299
) }
290
300
/>
291
-
292
- { /* <div className="TODO:METRICS flex max-w-[min(41rem,100%)] gap-6 md:ms-auto">
293
- <Skeleton className="h-32 w-64 rounded-2xl" />
294
- <Skeleton className="h-32 w-64 rounded-2xl" />
295
- <Skeleton className="h-32 w-64 rounded-2xl" />
296
- </div> */ }
297
301
</ section >
298
302
299
303
< section id = "features" >
0 commit comments