Skip to content

Commit

Permalink
Merge pull request #23129 from Expensify/vit-fixMissingSettlementButton
Browse files Browse the repository at this point in the history
[CP Staging] Fix missing settlement button
  • Loading branch information
luacmartins authored Jul 18, 2023
2 parents 0432a30 + d7c1fcd commit 34cfd33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ const propTypes = {

/** Policies, if we're showing the details for a report and need participant details for AvatarWithDisplay */
personalDetails: PropTypes.objectOf(participantPropTypes),

/** Children to wrap in Header */
children: PropTypes.node,
};

export default propTypes;
2 changes: 2 additions & 0 deletions src/components/HeaderWithBackButton/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function HeaderWithBackButton({
horizontal: 0,
},
threeDotsMenuItems = [],
children = null,
}) {
const [isDownloadButtonActive, temporarilyDisableDownloadButton] = useThrottledButtonState();
const {translate} = useLocalize();
Expand Down Expand Up @@ -93,6 +94,7 @@ function HeaderWithBackButton({
/>
)}
<View style={[styles.reportOptions, styles.flexRow, styles.pr5, styles.alignItemsCenter]}>
{children}
{shouldShowDownloadButton && (
<Tooltip text={translate('common.download')}>
<PressableWithoutFeedback
Expand Down

0 comments on commit 34cfd33

Please sign in to comment.