-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Whats new popup design fixes #10964
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
Whats new popup design fixes #10964
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
ryanml
left a comment
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.
left one comment, else lgtm!
| width={image.width} | ||
| /> | ||
| )} | ||
| {image && !image.placeBelowDescription && imageComponent} |
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.
The leading check for image shouldn't be necessary given that it's already checked for when imageComponent is declared: https://github.com/MetaMask/metamask-extension/pull/10964/files#diff-8a1b237ca446aed86e9d755decb615e0f1b7b3034bf4920781bc494a81aff657R35
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.
Addressed in f1579b9
Builds ready [f1579b9]
Page Load Metrics (677 ± 47 ms)
|
rachelcope
left a comment
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.
Looks good to me!
|
This looks good to me! |
| </div> | ||
| <div className="whats-new-popup__notification-date">{date}</div> | ||
| </div> | ||
| {imageComponent && placeImageBelowDescription ? imageComponent : null} |
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.
Could this be refactored to {placeImageBelowDescription && imageComponent}?
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.
yes, thanks, refactored and pushed 7c8fe41
| width={image.width} | ||
| /> | ||
| )} | ||
| {!placeImageBelowDescription && imageComponent ? imageComponent : null} |
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.
Could this be refactored to {!placeImageBelowDescription && imageComponent}?
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.
yes, thanks, refactored and pushed 7c8fe41
Builds ready [7c8fe41]
Page Load Metrics (646 ± 57 ms)
|


Makes some tweaks to the Whats New popup UI. Based on feedback from Thomas and a convo with Rachel:
Peek.2021-04-30.17-11.mp4