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

fix hydration errors #243

Merged
merged 3 commits into from
Sep 21, 2023
Merged

fix hydration errors #243

merged 3 commits into from
Sep 21, 2023

Conversation

cctdaniel
Copy link
Contributor

@cctdaniel cctdaniel commented Sep 21, 2023

use dynamic import to fix hydration errors

@vercel
Copy link

vercel bot commented Sep 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 21, 2023 6:44am
staking-devnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 21, 2023 6:44am

@@ -42,7 +48,7 @@ const Header = () => {
</Link>
</div>
<div className="flex items-center justify-end space-x-2">
<WalletMultiButton className="primary-btn pt-0.5" />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was causing hydration errors when wallet was connected

@@ -1064,127 +1062,126 @@ const Staking: NextPage = () => {
))}
</Tab.List>
<Tab.Panels className="mt-4 sm:mt-11">
{isReady &&
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was causing hydration errors when wallet was not connected

Copy link
Contributor

Choose a reason for hiding this comment

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

This github diff for this is a disgrace

@guibescos guibescos merged commit 8e0a786 into main Sep 21, 2023
8 checks passed
@guibescos guibescos deleted the fix-hydration-error branch September 21, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants