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

Feat: add jsDoc to billable #29327

Merged
merged 5 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/components/MoneyRequestConfirmationList.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ const propTypes = {
/** IOU Tag */
iouTag: PropTypes.string,

/** IOU isBillable */
iouIsBillable: PropTypes.bool,

/** Callback to toggle the billable state */
onToggleBillable: PropTypes.func,

/** Selected participants from MoneyRequestModal with login / accountID */
selectedParticipants: PropTypes.arrayOf(optionPropTypes).isRequired,

Expand Down Expand Up @@ -162,6 +168,8 @@ const defaultProps = {
iouType: CONST.IOU.MONEY_REQUEST_TYPE.REQUEST,
iouCategory: '',
iouTag: '',
iouIsBillable: false,
onToggleBillable: () => {},
payeePersonalDetails: null,
canModifyParticipants: false,
isReadOnly: false,
Expand Down
4 changes: 4 additions & 0 deletions src/pages/iou/propTypes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ const iouPropTypes = PropTypes.shape({
/** The category name */
category: PropTypes.string,

/** The Billable */
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/** The Billable */
/** Whether the request is billable */

Sorry for the nitpicks here, just trying to make it as descriptive as possible for those who don't really know what it is

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated :)

billable: PropTypes.bool,

/** The tag */
tag: PropTypes.string,

Expand All @@ -42,6 +45,7 @@ const iouDefaultProps = {
merchant: '',
category: '',
tag: '',
billable: false,
created: '',
participants: [],
receiptPath: '',
Expand Down
Loading