-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Migrate AvatarIcon #19107
Migrate AvatarIcon #19107
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. |
Hi @georgewrmarshall, Please review this PR. Thanks! |
Codecov Report
@@ Coverage Diff @@
## develop #19107 +/- ##
===========================================
- Coverage 68.67% 68.67% -0.00%
===========================================
Files 986 986
Lines 37862 37863 +1
Branches 10135 10136 +1
===========================================
- Hits 26000 25999 -1
- Misses 11862 11864 +2
|
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.
Looking good. Left a suggestion
ui/components/component-library/avatar-icon/avatar-icon.types.ts
Outdated
Show resolved
Hide resolved
ui/components/component-library/avatar-icon/avatar-icon.types.ts
Outdated
Show resolved
Hide resolved
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 suggestion
6a93203
to
f8fd84a
Compare
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 a suggestion about mapping the size prop
1d73752
to
b38b047
Compare
Hey @thebinij, Thanks for your time and effort in creating this pull request. As you're probably aware we have identified an issue related to the typing of the |
b38b047
to
e852873
Compare
e852873
to
b8e8b66
Compare
Hi @georgewrmarshall, Is there anything I can update in the PR before so you approve to merge it? |
Blocked by #19572 |
# This is the 1st commit message: Migrate AvatarIcon # This is the commit message MetaMask#2: fixing lint
fixing lint fixing size issue IconProps extends BaseProps instead of BoxProps Omit children from IconProps fixing lint issues mapping avatarIconSize to Iconsize replace deprecated
b8e8b66
to
89696c3
Compare
|
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.
LGTM! Made a tiny change to make the storybook controls to work as intended for the iconName
prop. Thanks for your contribution @thebinij and support @garrettbear
}, | ||
} as Meta<typeof AvatarIcon>; | ||
|
||
const Template: StoryFn<typeof AvatarIcon> = (args) => { | ||
return <AvatarIcon {...args} iconName={IconName.SwapHorizontal} />; | ||
return <AvatarIcon {...args} />; | ||
}; |
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.
Explanation
Screenshots/Screencaps
Before
output-before.mp4
After
output-after.mp4
Manual Testing Steps
No functional changes
Pre-merge author checklist
Pre-merge reviewer checklist
If further QA is required (e.g. new feature, complex testing steps, large refactor), add the
Extension QA Board
label.In this case, a QA Engineer approval will be be required.