[No QA] Fix propType warning#11070
Conversation
| import withWindowDimensions from '../withWindowDimensions'; | ||
| import {propTypes, defaultProps} from './anchorForCommentsOnlyPropTypes'; | ||
| import withWindowDimensions, {windowDimensionsPropTypes} from '../withWindowDimensions'; | ||
| import {propTypes as anchorForCommentsOnlyPropTypes, defaultProps} from './anchorForCommentsOnlyPropTypes'; |
There was a problem hiding this comment.
Can I use the import like this? Not sure if it is against StyleGuide. using import * as something from 'somthing' creates a warning.
There was a problem hiding this comment.
yup, this should be fine👍🏾
There was a problem hiding this comment.
Thanks can we get this merged?
There was a problem hiding this comment.
yup, hadn't tested it yesterday but I just did and it looks good
|
@srikarparsi looks like this was merged without passing tests. Please add a note explaining why this was done and remove the |
|
looks like a bug, it showed green that the pull request passed all the tests but now its showing an error with the contributor+ checklist which is filled out. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by @srikarparsi in version: 1.2.4-0 🚀
|
|
🚀 Deployed to production by @luacmartins in version: 1.2.4-2 🚀
|
Details
During my last PR #10503, I forgot to adjust the props which are causing a console warning.
Fixed Issues
$ GH_LINK
Tests
AnchorForCommentsOnly.PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)PR Reviewer Checklist
The Contributor+ will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)QA Steps
Screenshots
Web
Mobile Web
Desktop
iOS
Android