Skip to content

Commit

Permalink
Merge pull request #29327 from waterim/feat-26128-addJsDoc
Browse files Browse the repository at this point in the history
Feat: add jsDoc to billable
  • Loading branch information
amyevans committed Oct 13, 2023
2 parents d564b77 + 15ff9d7 commit f75b1ef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
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 @@ -165,6 +171,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,

/** Whether the request is billable */
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

0 comments on commit f75b1ef

Please sign in to comment.