-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Remove newDotPDFExport beta #60348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove newDotPDFExport beta #60348
Changes from all commits
2ea608e
3f02b85
10a7b13
c98736a
06e82b7
880868b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,7 +36,6 @@ import useDelegateUserDetails from '@hooks/useDelegateUserDetails'; | |
| import useLocalize from '@hooks/useLocalize'; | ||
| import useNetwork from '@hooks/useNetwork'; | ||
| import usePaginatedReportActions from '@hooks/usePaginatedReportActions'; | ||
| import usePermissions from '@hooks/usePermissions'; | ||
| import useResponsiveLayout from '@hooks/useResponsiveLayout'; | ||
| import useTheme from '@hooks/useTheme'; | ||
| import useThemeStyles from '@hooks/useThemeStyles'; | ||
|
|
@@ -164,7 +163,7 @@ type CaseID = ValueOf<typeof CASES>; | |
| function ReportDetailsPage({policies, report, route, reportMetadata}: ReportDetailsPageProps) { | ||
| const {translate} = useLocalize(); | ||
| const {isOffline} = useNetwork(); | ||
| const {canUsePDFExport, canUseTableReportView} = usePermissions(); | ||
| const {canUseTableReportView} = usePermissions(); | ||
| const theme = useTheme(); | ||
| const styles = useThemeStyles(); | ||
| const backTo = route.params.backTo; | ||
|
|
@@ -574,22 +573,19 @@ function ReportDetailsPage({policies, report, route, reportMetadata}: ReportDeta | |
| }); | ||
| }, | ||
| }); | ||
|
|
||
| if (canUsePDFExport) { | ||
| items.push({ | ||
| key: CONST.REPORT_DETAILS_MENU_ITEM.DOWNLOAD_PDF, | ||
| translationKey: 'common.downloadAsPDF', | ||
| icon: Expensicons.Document, | ||
| isAnonymousAction: false, | ||
| action: () => { | ||
| if (isOffline) { | ||
| setOfflineModalVisible(true); | ||
| } else { | ||
| beginPDFExport(); | ||
| } | ||
| }, | ||
| }); | ||
| } | ||
| items.push({ | ||
| key: CONST.REPORT_DETAILS_MENU_ITEM.DOWNLOAD_PDF, | ||
| translationKey: 'common.downloadAsPDF', | ||
| icon: Expensicons.Document, | ||
| isAnonymousAction: false, | ||
| action: () => { | ||
| if (isOffline) { | ||
| setOfflineModalVisible(true); | ||
| } else { | ||
| beginPDFExport(); | ||
| } | ||
| }, | ||
| }); | ||
| } | ||
|
|
||
| if (policy && connectedIntegration && isPolicyAdmin && !isSingleTransactionView && isExpenseReport) { | ||
|
|
@@ -660,6 +656,7 @@ function ReportDetailsPage({policies, report, route, reportMetadata}: ReportDeta | |
|
|
||
| return items; | ||
| }, [ | ||
| beginPDFExport, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is adding this intentional or is it a merge conflict issue?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems needed there, so all good 👍
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is here twice, argh - #60964 |
||
| isSelfDM, | ||
| isArchivedRoom, | ||
| isGroupChat, | ||
|
|
@@ -698,7 +695,6 @@ function ReportDetailsPage({policies, report, route, reportMetadata}: ReportDeta | |
| session, | ||
| canModifyTask, | ||
| canActionTask, | ||
| canUsePDFExport, | ||
| isOffline, | ||
| transactionIDList, | ||
| beginPDFExport, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aw shoot - we need this still, I missed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#60965