diff --git a/src/pages/home/ReportScreen.js b/src/pages/home/ReportScreen.js index 6d573fe567bc..1d591664b805 100644 --- a/src/pages/home/ReportScreen.js +++ b/src/pages/home/ReportScreen.js @@ -40,6 +40,7 @@ import getIsReportFullyVisible from '../../libs/getIsReportFullyVisible'; import EmojiPicker from '../../components/EmojiPicker/EmojiPicker'; import * as EmojiPickerAction from '../../libs/actions/EmojiPickerAction'; import TaskHeaderView from './TaskHeaderView'; +import MoneyRequestHeader from '../../components/MoneyRequestHeader'; const propTypes = { /** Navigation route context info provided by react navigation */ @@ -275,12 +276,22 @@ class ReportScreen extends React.Component { errors={addWorkspaceRoomOrChatErrors} shouldShowErrorMessages={false} > - Navigation.navigate(ROUTES.HOME)} - personalDetails={this.props.personalDetails} - report={this.props.report} - /> + {ReportUtils.isMoneyRequestReport(this.props.report) + ? ( + + ) + : ( + Navigation.navigate(ROUTES.HOME)} + personalDetails={this.props.personalDetails} + report={this.props.report} + /> + )} {Boolean(this.props.accountManagerReportID) && ReportUtils.isConciergeChatReport(this.props.report) && this.state.isBannerVisible && ( { const icons = ReportUtils.getIcons(props.report, props.personalDetails); + + if (ReportUtils.isMoneyRequestReport(props.report.reportID)) { + return null; + } + return (