feat: revamp Enterprise page#15647
Merged
Merged
Conversation
✅ Deploy Preview for ethereumorg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
use hanging cards
Use client-side Translation component where htmr required due to html usage inside strings
corwintines
reviewed
Jun 13, 2025
Comment on lines
+84
to
+116
| // TODO: Switch back to this for cache and mock-data dev fallback | ||
| // const loadData = dataLoader( | ||
| // [ | ||
| // ["growThePieData", fetchGrowThePie], | ||
| // ["ethereumStablecoins", fetchEthereumStablecoinsMcap], | ||
| // ["ethPrice", fetchEthPrice], | ||
| // ["totalEthStaked", fetchTotalEthStaked], | ||
| // ], | ||
| // BASE_TIME_UNIT * 1000 | ||
| // ) | ||
|
|
||
| const Page = async ({ params }: { params: { locale: Lang } }) => { | ||
| const { locale } = params | ||
|
|
||
| const t = await getTranslations({ locale, namespace: "page-enterprise" }) | ||
|
|
||
| // const [{ txCount }, stablecoinMarketCap, ethPrice, totalEthStaked] = | ||
| // await loadData() | ||
| const { txCount } = await fetchGrowThePie() | ||
| const stablecoinMarketCap = await fetchEthereumStablecoinsMcap() | ||
| const ethPrice = await fetchEthPrice() | ||
| const totalEthStaked = await fetchTotalEthStaked() | ||
|
|
||
| const metrics = await parseActivity( | ||
| { | ||
| txCount, | ||
| stablecoinMarketCap, | ||
| ethPrice, | ||
| totalEthStaked, | ||
| // totalCapitalSecured, | ||
| }, | ||
| locale | ||
| ) |
Member
There was a problem hiding this comment.
Just checking if this TODO needs to be handled before merged
Member
Author
There was a problem hiding this comment.
No, this was boilerplate for a "Total Value Secured" endpoint but we don't have one available just yet, so staked ETH is taking it's place for now.
avoid prop drilling locale
corwintines
approved these changes
Jun 17, 2025
corwintines
previously approved these changes
Jun 18, 2025
corwintines
approved these changes
Jun 18, 2025
This was referenced Jun 25, 2025
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
/enterprise/use-cases/, re-ordering sections and adding CTA buttonsPreview link
https://deploy-preview-15647--ethereumorg.netlify.app/en/enterprise
Related Issue