From 79498de1e88ca750e9e40aa111989258caff12e7 Mon Sep 17 00:00:00 2001 From: Artem Makushov Date: Wed, 11 Oct 2023 16:59:14 +0200 Subject: [PATCH 1/5] add jsDoc --- src/components/MoneyRequestConfirmationList.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/MoneyRequestConfirmationList.js b/src/components/MoneyRequestConfirmationList.js index acaa83181bb..092988bdfbd 100755 --- a/src/components/MoneyRequestConfirmationList.js +++ b/src/components/MoneyRequestConfirmationList.js @@ -80,6 +80,12 @@ const propTypes = { /** IOU Tag */ iouTag: PropTypes.string, + /** IOU isBillable */ + iouIsBillable: PropTypes.bool, + + /** IOU Callback toggle billable state */ + onToggleBillable: PropTypes.func, + /** Selected participants from MoneyRequestModal with login / accountID */ selectedParticipants: PropTypes.arrayOf(optionPropTypes).isRequired, From 881dd0d038a1452c5d1811600adba69e147ee70c Mon Sep 17 00:00:00 2001 From: Artem Makushov Date: Wed, 11 Oct 2023 19:00:17 +0200 Subject: [PATCH 2/5] add defaultPrps --- src/components/MoneyRequestConfirmationList.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/MoneyRequestConfirmationList.js b/src/components/MoneyRequestConfirmationList.js index 092988bdfbd..64e7ed6b232 100755 --- a/src/components/MoneyRequestConfirmationList.js +++ b/src/components/MoneyRequestConfirmationList.js @@ -168,6 +168,8 @@ const defaultProps = { iouType: CONST.IOU.MONEY_REQUEST_TYPE.REQUEST, iouCategory: '', iouTag: '', + iouIsBillable: false, + onToggleBillable: () => {}, payeePersonalDetails: null, canModifyParticipants: false, isReadOnly: false, From bcd7fd363fdd0222f483efb9b728f784a7ecb926 Mon Sep 17 00:00:00 2001 From: Artem Makushov Date: Thu, 12 Oct 2023 14:30:53 +0200 Subject: [PATCH 3/5] adjustments --- src/components/MoneyRequestConfirmationList.js | 2 +- src/pages/iou/propTypes/index.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/MoneyRequestConfirmationList.js b/src/components/MoneyRequestConfirmationList.js index 64e7ed6b232..d85f76a45af 100755 --- a/src/components/MoneyRequestConfirmationList.js +++ b/src/components/MoneyRequestConfirmationList.js @@ -83,7 +83,7 @@ const propTypes = { /** IOU isBillable */ iouIsBillable: PropTypes.bool, - /** IOU Callback toggle billable state */ + /** Callback to toggle the billable state */ onToggleBillable: PropTypes.func, /** Selected participants from MoneyRequestModal with login / accountID */ diff --git a/src/pages/iou/propTypes/index.js b/src/pages/iou/propTypes/index.js index 586f8424a2c..c4b5e759b92 100644 --- a/src/pages/iou/propTypes/index.js +++ b/src/pages/iou/propTypes/index.js @@ -21,6 +21,9 @@ const iouPropTypes = PropTypes.shape({ /** The category name */ category: PropTypes.string, + /** The Billable */ + billable: PropTypes.bool, + /** The tag */ tag: PropTypes.string, From e24c8eda7e7a5385b199203e5b102e9a711839b5 Mon Sep 17 00:00:00 2001 From: Artem Makushov Date: Thu, 12 Oct 2023 14:31:37 +0200 Subject: [PATCH 4/5] default props --- src/pages/iou/propTypes/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/iou/propTypes/index.js b/src/pages/iou/propTypes/index.js index c4b5e759b92..12cf4d88fc5 100644 --- a/src/pages/iou/propTypes/index.js +++ b/src/pages/iou/propTypes/index.js @@ -45,6 +45,7 @@ const iouDefaultProps = { merchant: '', category: '', tag: '', + billable: false, created: '', participants: [], receiptPath: '', From 15ff9d7e24c060b77ba81ca6286d532e4653ea77 Mon Sep 17 00:00:00 2001 From: Artem Makushov Date: Thu, 12 Oct 2023 15:31:39 +0200 Subject: [PATCH 5/5] adjustment --- src/pages/iou/propTypes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/iou/propTypes/index.js b/src/pages/iou/propTypes/index.js index 12cf4d88fc5..d41b4cbf172 100644 --- a/src/pages/iou/propTypes/index.js +++ b/src/pages/iou/propTypes/index.js @@ -21,7 +21,7 @@ const iouPropTypes = PropTypes.shape({ /** The category name */ category: PropTypes.string, - /** The Billable */ + /** Whether the request is billable */ billable: PropTypes.bool, /** The tag */