-
Notifications
You must be signed in to change notification settings - Fork 2
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
dApp: Wallet connection info alert #917
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for acre-dapp-testnet ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for acre-dapp ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
dapp/src/components/shared/Alert.tsx
Outdated
@@ -22,7 +22,7 @@ import Spinner from "./Spinner" | |||
const STATUSES = { | |||
info: { | |||
icon: IconInfoCircle, | |||
colorScheme: "gold", | |||
colorScheme: "blue", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closes: AENG-24
This pull request focuses on refactoring the wallet connection error handling system to use alerts of multiple types. The changes include renaming components and contexts, updating imports and hooks, and modifying the structure of connection alerts.
Changes:
status
fromWalletConnectionAlertContext
: Storingstatus
in context is redundant. It was always"error"
and having it in context made it difficult to control. Thestatus
property has only presentational purpose so it should be adjustable at the component level.Alert
component styling: Change title font weight and removed margin.Modal
component styling to match designs: Update paddings to match designsBefore:
After: