Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 19 additions & 21 deletions src/pages/ReportDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import AvatarWithImagePicker from '@components/AvatarWithImagePicker';
import FullPageNotFoundView from '@components/BlockingViews/FullPageNotFoundView';
import ConfirmModal from '@components/ConfirmModal';
import DisplayNames from '@components/DisplayNames';
import FixedFooter from '@components/FixedFooter';
import HeaderWithBackButton from '@components/HeaderWithBackButton';
import MentionReportContext from '@components/HTMLEngineProvider/HTMLRenderers/MentionReportRenderer/MentionReportContext';
import * as Expensicons from '@components/Icon/Expensicons';
Expand All @@ -22,7 +21,6 @@ import ReportActionAvatars from '@components/ReportActionAvatars';
import ScreenWrapper from '@components/ScreenWrapper';
import ScrollView from '@components/ScrollView';
import {useSearchContext} from '@components/Search/SearchContext';
import TextWithCopy from '@components/TextWithCopy';
import useDuplicateTransactionsAndViolations from '@hooks/useDuplicateTransactionsAndViolations';
import useLocalize from '@hooks/useLocalize';
import useNetwork from '@hooks/useNetwork';
Expand Down Expand Up @@ -875,6 +873,25 @@ function ReportDetailsPage({policy, report, route, reportMetadata}: ReportDetail
</OfflineWithFeedback>
)}

{isFinancialReportsForBusinesses && (
<>
<MenuItemWithTopDescription
title={base62ReportID}
description={translate('common.reportID')}
copyValue={base62ReportID}
interactive={false}
shouldBlockSelection
/>
<MenuItemWithTopDescription
title={report.reportID}
description={translate('common.longID')}
copyValue={report.reportID}
interactive={false}
shouldBlockSelection
/>
</>
)}

<PromotedActionsBar
containerStyle={styles.mt5}
promotedActions={promotedActions}
Expand All @@ -901,25 +918,6 @@ function ReportDetailsPage({policy, report, route, reportMetadata}: ReportDetail
onPress={() => setIsDeleteModalVisible(true)}
/>
)}

{isFinancialReportsForBusinesses && (
<FixedFooter style={[styles.alignItemsCenter, styles.flex1, styles.justifyContentEnd, styles.pt5]}>
<View style={[styles.flexRow, styles.alignItemsCenter, styles.gap3]}>
<TextWithCopy
copyValue={base62ReportID}
style={styles.textMicroSupporting}
>
{`${translate('common.reportID')}: ${base62ReportID}`}
</TextWithCopy>
<TextWithCopy
copyValue={report.reportID}
style={styles.textMicroSupporting}
>
{`${translate('common.longID')}: ${report.reportID}`}
</TextWithCopy>
</View>
</FixedFooter>
)}
</ScrollView>
<ConfirmModal
danger
Expand Down
Loading