Skip to content
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 all propTypes to use block comments #2921

Merged
merged 2 commits into from
May 14, 2021

Conversation

marcaaron
Copy link
Contributor

Details

We updated the style guide to enforce block comments for propTypes but there are many not using that rule. This updates them all.

Fixed Issues

Fixes https://github.com/Expensify/Expensify/issues/151907

Tests

QA Steps

Tested On

N/A

Screenshots

N/A

@marcaaron marcaaron self-assigned this May 14, 2021
@marcaaron marcaaron requested a review from a team as a code owner May 14, 2021 03:01
@MelvinBot MelvinBot requested review from NikkiWines and removed request for a team May 14, 2021 03:01
Copy link
Contributor

@NikkiWines NikkiWines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor spelling and capitalization stuff, looks good otherwise

onLinkClick: PropTypes.func.isRequired,

// navigates to settings and hides sidebar
/** navigates to settings and hides sidebar */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NAB: should be capitalized

onConfirm: PropTypes.func.isRequired,

// callback to update comment from IOUModal
/** callback to update comment from IOUModal */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NAB: should be capitalized

pronouns: PropTypes.string,

// timezone of the current user from their personal details
/** timezone of the current user from their personal details */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NAB: should be capitalized

error: PropTypes.string,

// Weather or not the account is validated
/** Weather or not the account is validated */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whether not Weather

validated: PropTypes.bool,

// Weather or not the account is validated
/** Weather or not the account is validated */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whether not Weather

onUpdateComment: PropTypes.func,

// comment value from IOUModal
/** comment value from IOUModal */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NAB: should be capitalized

Copy link
Contributor

@NikkiWines NikkiWines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good :shipit:

@NikkiWines NikkiWines merged commit dc0c8b7 into main May 14, 2021
@NikkiWines NikkiWines deleted the marcaaron-fixAllPropTypesComments branch May 14, 2021 19:28
@OSBotify
Copy link
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify
Copy link
Contributor

🚀 Deployed to staging in version: 1.0.46-1🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants