-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[No QA] Fix some propType
warnings
#10797
Conversation
@@ -11,8 +10,6 @@ const OptionsSelector = forwardRef((props, ref) => ( | |||
/> | |||
)); | |||
|
|||
OptionsSelector.propTypes = propTypes; | |||
OptionsSelector.defaultProps = defaultProps; |
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.
Seemed unnecessary because we are passing these here ->
App/src/components/OptionsSelector/BaseOptionsSelector.js
Lines 22 to 32 in 01292ee
const propTypes = { | |
/** Whether we should wait before focusing the TextInput, useful when using transitions on Android */ | |
shouldDelayFocus: PropTypes.bool, | |
...optionsSelectorPropTypes, | |
}; | |
const defaultProps = { | |
shouldDelayFocus: false, | |
...optionsSelectorDefaultProps, | |
}; |
@@ -10,8 +9,6 @@ const OptionsSelector = forwardRef((props, ref) => ( | |||
/> | |||
)); | |||
|
|||
OptionsSelector.propTypes = propTypes; | |||
OptionsSelector.defaultProps = defaultProps; |
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.
Seemed unnecessary because we are passing these here ->
App/src/components/OptionsSelector/BaseOptionsSelector.js
Lines 22 to 32 in 01292ee
const propTypes = { | |
/** Whether we should wait before focusing the TextInput, useful when using transitions on Android */ | |
shouldDelayFocus: PropTypes.bool, | |
...optionsSelectorPropTypes, | |
}; | |
const defaultProps = { | |
shouldDelayFocus: false, | |
...optionsSelectorDefaultProps, | |
}; |
@marcaaron looks like this was merged without passing tests. Please add a note explaining why this was done and remove the |
Contributor checklist was the only thing not passing and it was entirely checked. |
✋ 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 @marcaaron in version: 1.1.97-0 🚀
|
Details
Noticed on dev.
Fixed Issues
No issue
Tests
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is 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 Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)QA Steps
Screenshots
Web
Mobile Web
Desktop
iOS
Android