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(web): show chain switch modal if dispute is absent #444

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

ShubhamParkhi
Copy link
Contributor

@ShubhamParkhi ShubhamParkhi commented Nov 16, 2024

closes #433


PR-Codex overview

This PR introduces a new modal to handle cases where a dispute is too old and the user is not on the Mainnet. It enhances the Case component by adding logic for chain switching and rendering content conditionally based on dispute status.

Detailed summary

  • Added useMemo to check if a dispute is too old.
  • Created handleChainSwitchToMainnet function to switch to the Mainnet.
  • Introduced renderContent function to conditionally render a modal for old disputes.
  • Replaced the original content rendering with a call to renderContent().

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

netlify bot commented Nov 16, 2024

Deploy Preview for kleros-court ready!

Name Link
🔨 Latest commit 121e137
🔍 Latest deploy log https://app.netlify.com/sites/kleros-court/deploys/673e85237f4e9500086b3637
😎 Deploy Preview https://deploy-preview-444--kleros-court.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ShubhamParkhi ShubhamParkhi requested a review from kemuru November 16, 2024 08:04
@jaybuidl jaybuidl merged commit 98bc6eb into kleros:master Nov 21, 2024
5 checks passed
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.

Loading a non-existing dispute in Gnosis sometimes renders Evidence Period Over >50 Years Ago
3 participants