-
Notifications
You must be signed in to change notification settings - Fork 163
Remove depricated registerPostDropdownMenuComponent #921
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
Conversation
|
@wiggin77 |
| return ( | ||
| <li | ||
| className='MenuItem' | ||
| role='menuitem' | ||
| > | ||
| <button className='style--none'> | ||
| <span className='MenuItem__icon'> | ||
| <GitHubIcon type='menu'/> | ||
| </span> | ||
| {'Create GitHub Issue'} | ||
| </button> | ||
| ); | ||
|
|
||
| return ( | ||
| <li | ||
| className='MenuItem' | ||
| role='menuitem' | ||
| > | ||
| {content} | ||
| </li> | ||
| ); | ||
| } | ||
| </li> | ||
| ); |
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 li and button elements are already rendered by the web app, so you can remove them from here. The span with MenuItem__icon also isn't actually needed because GitHubIcon already includes that inside it, so this should be:
return (
<>
<GitHubIcon type='menu'/>
{'Create GitHub Issue'}
</>
);Testing that locally, the icon is a bit misaligned with the text, but that's fine since it's something I can fix on the web app side (https://mattermost.atlassian.net/browse/MM-65101)
| <GitHubIcon type='menu'/> | ||
| export default function AttachCommentToIssuePostMenuAction() { | ||
| return ( | ||
| <li |
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 same change should be made here as well
hmhealey
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 to me like that should work!
Yup, working fine for me. Lets put it up for QA testing. |
arush-vashishtha
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.
This PR is tested & all the code changes are working fine.
LGTM


Summary
Remove depricated registerPostDropdownMenuComponent