From 850f4991218a780fc4d5caa2dcdcf611e8f837ef Mon Sep 17 00:00:00 2001 From: Kosuke Tseng Date: Thu, 23 Feb 2023 14:31:06 -0800 Subject: [PATCH 1/2] fix proptypes --- src/components/IOUConfirmationList.js | 2 +- src/pages/iou/steps/IOUConfirmPage.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/IOUConfirmationList.js b/src/components/IOUConfirmationList.js index 53baab7d64fa..ea012dd32417 100755 --- a/src/components/IOUConfirmationList.js +++ b/src/components/IOUConfirmationList.js @@ -44,7 +44,7 @@ const propTypes = { login: PropTypes.string.isRequired, alternateText: PropTypes.string, hasDraftComment: PropTypes.bool, - icons: PropTypes.arrayOf(PropTypes.string), + icons: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.func])), searchText: PropTypes.string, text: PropTypes.string, keyForList: PropTypes.string, diff --git a/src/pages/iou/steps/IOUConfirmPage.js b/src/pages/iou/steps/IOUConfirmPage.js index a4f4ce866f60..9cc511990697 100644 --- a/src/pages/iou/steps/IOUConfirmPage.js +++ b/src/pages/iou/steps/IOUConfirmPage.js @@ -27,7 +27,7 @@ const propTypes = { login: PropTypes.string.isRequired, alternateText: PropTypes.string, hasDraftComment: PropTypes.bool, - icons: PropTypes.arrayOf(PropTypes.string), + icons: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.func])), searchText: PropTypes.string, text: PropTypes.string, keyForList: PropTypes.string, From caf5aecbd125efaa8c354813df7d66e12df1b020 Mon Sep 17 00:00:00 2001 From: Georgia Monahan Date: Mon, 27 Feb 2023 14:06:13 -0800 Subject: [PATCH 2/2] Add correct icon proptypes to IOU pages / reportPropTypes --- src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsPage.js | 2 +- src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsSplit.js | 2 +- src/pages/reportPropTypes.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsPage.js b/src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsPage.js index 38d5c7a9d46d..185b37d85bb1 100644 --- a/src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsPage.js +++ b/src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsPage.js @@ -23,7 +23,7 @@ const propTypes = { login: PropTypes.string.isRequired, alternateText: PropTypes.string, hasDraftComment: PropTypes.bool, - icons: PropTypes.arrayOf(PropTypes.string), + icons: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.func])), searchText: PropTypes.string, text: PropTypes.string, keyForList: PropTypes.string, diff --git a/src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsSplit.js b/src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsSplit.js index f43325b6bdc8..8239ded8468a 100755 --- a/src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsSplit.js +++ b/src/pages/iou/steps/IOUParticipantsPage/IOUParticipantsSplit.js @@ -29,7 +29,7 @@ const propTypes = { login: PropTypes.string.isRequired, alternateText: PropTypes.string, hasDraftComment: PropTypes.bool, - icons: PropTypes.arrayOf(PropTypes.string), + icons: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.func])), searchText: PropTypes.string, text: PropTypes.string, keyForList: PropTypes.string, diff --git a/src/pages/reportPropTypes.js b/src/pages/reportPropTypes.js index 95a58c26fa8a..61e283b51aab 100644 --- a/src/pages/reportPropTypes.js +++ b/src/pages/reportPropTypes.js @@ -11,7 +11,7 @@ export default PropTypes.shape({ hasOutstandingIOU: PropTypes.bool, /** List of icons for report participants */ - icons: PropTypes.arrayOf(PropTypes.string), + icons: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.func])), /** Are we loading more report actions? */ isLoadingMoreReportActions: PropTypes.bool,