Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staking epic patches #6035

Merged
merged 6 commits into from
Apr 14, 2022
Merged

Staking epic patches #6035

merged 6 commits into from
Apr 14, 2022

Conversation

wackerow
Copy link
Member

@wackerow wackerow commented Apr 14, 2022

Description

Fixes a few initial bugs noted on recently merged staking epic PR.

  • Centers hierarchy pills on mobile
  • Removes unused components
  • FAQ update with latest copy
  • Denote APR estimation as approximate
  • Bug: "StakingLaunchpadWidget" component name fixed

Preview: https://ethereumorgwebsitedev01-stakingpatches.gtsb.io/en/staking

@gatsby-cloud
Copy link

gatsby-cloud bot commented Apr 14, 2022

Gatsby Cloud Build Report

ethereum-org-website-dev

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 12m

Performance

Lighthouse report

Metric Score
Performance 🔶 17
Accessibility 💚 100
Best Practices 💚 100
SEO 🔶 85

🔗 View full report

@@ -96,7 +96,7 @@ const StatsBoxGrid = () => {
const valueCurrentApr = formatPercentage(currentAprDecimal)
setTotalEth(valueTotalEth)
setTotalValidators(valueTotalValidators)
setCurrentApr(valueCurrentApr)
setCurrentApr(`~${valueCurrentApr}`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a huge deal until we migrate to TypeScript, but we're doing an implicit type conversion from int to string here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The formatPercentage helper function returns a string already before this is passed to the state setter. This doesn't actually add any implicit conversion, but yeah... TS will soon help make all of this more clear.

@minimalsm minimalsm merged commit 0614d2a into dev Apr 14, 2022
@minimalsm minimalsm deleted the staking-patches branch April 14, 2022 15:55
@wackerow wackerow mentioned this pull request Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content 🖋️ This involves copy additions or edits
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants