@@ -43,10 +43,11 @@ import { Card } from "@/components/ui/card"
43
43
import { Skeleton , SkeletonLines } from "@/components/ui/skeleton"
44
44
45
45
import { cn } from "@/lib/utils/cn"
46
- // import { dataLoader } from "@/lib/utils/data/dataLoader"
46
+ import { dataLoader } from "@/lib/utils/data/dataLoader"
47
47
import { getMetadata } from "@/lib/utils/metadata"
48
48
49
- // import { BASE_TIME_UNIT } from "@/lib/constants"
49
+ import { BASE_TIME_UNIT } from "@/lib/constants"
50
+
50
51
import CasesColumn from "./_components/CasesColumn"
51
52
import FeatureCard from "./_components/FeatureCard"
52
53
import { ENTERPRISE_MAILTO } from "./constants"
@@ -81,28 +82,27 @@ const CasesSwiper = dynamic(() => import("./_components/CasesSwiper"), {
81
82
) ,
82
83
} )
83
84
84
- // TODO: Switch back to this for cache and mock-data dev fallback
85
- // const loadData = dataLoader(
86
- // [
87
- // ["growThePieData", fetchGrowThePie],
88
- // ["ethereumStablecoins", fetchEthereumStablecoinsMcap],
89
- // ["ethPrice", fetchEthPrice],
90
- // ["totalEthStaked", fetchTotalEthStaked],
91
- // ],
92
- // BASE_TIME_UNIT * 1000
93
- // )
85
+ const loadData = dataLoader (
86
+ [
87
+ [ "growThePieData" , fetchGrowThePie ] ,
88
+ [ "ethereumStablecoins" , fetchEthereumStablecoinsMcap ] ,
89
+ [ "ethPrice" , fetchEthPrice ] ,
90
+ [ "totalEthStaked" , fetchTotalEthStaked ] ,
91
+ ] ,
92
+ BASE_TIME_UNIT * 1000
93
+ )
94
94
95
95
const Page = async ( { params } : { params : { locale : Lang } } ) => {
96
96
const { locale } = params
97
97
98
98
const t = await getTranslations ( { locale, namespace : "page-enterprise" } )
99
99
100
- // const [{ txCount }, stablecoinMarketCap, ethPrice, totalEthStaked] =
101
- // await loadData()
102
- const { txCount , txCostsMedianUsd } = await fetchGrowThePie ( )
103
- const stablecoinMarketCap = await fetchEthereumStablecoinsMcap ( )
104
- const ethPrice = await fetchEthPrice ( )
105
- const totalEthStaked = await fetchTotalEthStaked ( )
100
+ const [
101
+ { txCount , txCostsMedianUsd } ,
102
+ stablecoinMarketCap ,
103
+ ethPrice ,
104
+ totalEthStaked ,
105
+ ] = await loadData ( )
106
106
107
107
const metrics = await parseActivity ( {
108
108
txCount,
0 commit comments