-
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] Rename and cleanup OptionRowTitle #2215
Conversation
Could you please fix the Prop check here as well? |
@parasharrajat I'm not seeing how the secondAvatarStyle is related to this PR |
Also @parasharrajat, it looks like from your other PR we can simplify |
Name looks promising. 👍
There was prop type error and I thought as we are changing OptionRow so this can be fixed as well. |
Sorry was a little slow to review this and there's a conflict now. |
# Conflicts: # src/styles/styles.js
All good, merge conflict 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.
Changes look great to me. Just had a few small comments.
@@ -0,0 +1,30 @@ | |||
import PropTypes from 'prop-types'; | |||
|
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.
Not sure where to put this, but I think as a convention we should not use pascal case for things that are not namespaces or react components. If you look most other propTypes files are using camelcase.
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.
Hmmm... confused by this comment because a case-insensitive global search of import prop
in Expensify.cash shows that almost all usages use PascalCase:
The exceptions are when we have a propTypes file, we export {propTypes, defaultProps}
using camelCase. Were you referring to the file name? I think that's what you meant, so I changed the filename to use camelCase
. It looks like we have been pretty inconsistent about this so far, so happy to standardize.
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.
Sorry @roryabraham I was referring to the file name.
Details
OptionRowTitle
to a more genericDisplayNames
componentpropTypes
warning present on master.Fixed Issues
No issue, coming from this comment.
Tests (web/desktop)
Run the app, make sure tooltips are working as expeceted on report titles and option rows.
Tests (mWeb/ios/android)
Run the app, make sure there are no regressions.
Tested On
Screenshots
Web
Desktop