Skip to content

Commit 0161f98

Browse files
authored
Merge pull request #15689 from ethereum/master
Back merge `master` into `staging`
2 parents b42f636 + 6e75965 commit 0161f98

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

app/[locale]/enterprise/page.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ import { Card } from "@/components/ui/card"
4343
import { Skeleton, SkeletonLines } from "@/components/ui/skeleton"
4444

4545
import { cn } from "@/lib/utils/cn"
46-
// import { dataLoader } from "@/lib/utils/data/dataLoader"
46+
import { dataLoader } from "@/lib/utils/data/dataLoader"
4747
import { getMetadata } from "@/lib/utils/metadata"
4848

49-
// import { BASE_TIME_UNIT } from "@/lib/constants"
49+
import { BASE_TIME_UNIT } from "@/lib/constants"
50+
5051
import CasesColumn from "./_components/CasesColumn"
5152
import FeatureCard from "./_components/FeatureCard"
5253
import { ENTERPRISE_MAILTO } from "./constants"
@@ -81,28 +82,27 @@ const CasesSwiper = dynamic(() => import("./_components/CasesSwiper"), {
8182
),
8283
})
8384

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+
)
9494

9595
const Page = async ({ params }: { params: { locale: Lang } }) => {
9696
const { locale } = params
9797

9898
const t = await getTranslations({ locale, namespace: "page-enterprise" })
9999

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()
106106

107107
const metrics = await parseActivity({
108108
txCount,

src/components/Image/CardImage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const CardImage = ({ src, className, ...props }: CardImageProps) => (
1717
e.currentTarget.src = EventFallback.src
1818
}}
1919
referrerPolicy="no-referrer"
20-
crossOrigin="anonymous"
2120
className={className}
2221
{...props}
2322
/>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "value": 126900000000 }

0 commit comments

Comments
 (0)