Skip to content

Commit f75b1ef

Browse files
authored
Merge pull request #29327 from waterim/feat-26128-addJsDoc
Feat: add jsDoc to billable
2 parents d564b77 + 15ff9d7 commit f75b1ef

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/components/MoneyRequestConfirmationList.js

+8
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ const propTypes = {
8080
/** IOU Tag */
8181
iouTag: PropTypes.string,
8282

83+
/** IOU isBillable */
84+
iouIsBillable: PropTypes.bool,
85+
86+
/** Callback to toggle the billable state */
87+
onToggleBillable: PropTypes.func,
88+
8389
/** Selected participants from MoneyRequestModal with login / accountID */
8490
selectedParticipants: PropTypes.arrayOf(optionPropTypes).isRequired,
8591

@@ -165,6 +171,8 @@ const defaultProps = {
165171
iouType: CONST.IOU.MONEY_REQUEST_TYPE.REQUEST,
166172
iouCategory: '',
167173
iouTag: '',
174+
iouIsBillable: false,
175+
onToggleBillable: () => {},
168176
payeePersonalDetails: null,
169177
canModifyParticipants: false,
170178
isReadOnly: false,

src/pages/iou/propTypes/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ const iouPropTypes = PropTypes.shape({
2121
/** The category name */
2222
category: PropTypes.string,
2323

24+
/** Whether the request is billable */
25+
billable: PropTypes.bool,
26+
2427
/** The tag */
2528
tag: PropTypes.string,
2629

@@ -42,6 +45,7 @@ const iouDefaultProps = {
4245
merchant: '',
4346
category: '',
4447
tag: '',
48+
billable: false,
4549
created: '',
4650
participants: [],
4751
receiptPath: '',

0 commit comments

Comments
 (0)