Skip to content

Commit

Permalink
Props clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mountiny committed Aug 18, 2023
1 parent 0b18306 commit ede0be7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/pages/iou/MoneyRequestMerchantPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,20 @@ const propTypes = {
created: PropTypes.string,
merchant: PropTypes.string,
participants: PropTypes.arrayOf(optionPropTypes),
receiptPath: PropTypes.string,
}),

/** Route from navigation */
route: PropTypes.shape({
/** Params from the route */
params: PropTypes.shape({
/** Which field we are editing */
field: PropTypes.string,

/** reportID for the "transaction thread" */
threadReportID: PropTypes.string,
}),
}).isRequired,
};

const defaultProps = {
Expand All @@ -37,6 +50,7 @@ const defaultProps = {
comment: '',
merchant: '',
participants: [],
receiptPath: '',
},
};

Expand Down

0 comments on commit ede0be7

Please sign in to comment.