Skip to content

Add Download app promo banner on desktop upload expense flow #61885

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 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
2 changes: 2 additions & 0 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,8 @@ const translations = {
comments: 'Comments',
sharedIn: 'Shared in',
unreported: 'Unreported',
getTheApp: 'Get the app',
scanReceiptsOnTheGo: 'Scan receipts on the go',
},
supportalNoAccess: {
title: 'Not so fast',
Expand Down
2 changes: 2 additions & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,8 @@ const translations = {
comments: 'Comentarios',
sharedIn: 'Compartido en',
unreported: 'No reportado',
getTheApp: 'Descarga la app',
scanReceiptsOnTheGo: 'Escanea recibos sobre la marcha',
},
supportalNoAccess: {
title: 'No tan rápido',
Expand Down
20 changes: 20 additions & 0 deletions src/pages/iou/request/step/IOURequestStepScan/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import DropZoneUI from '@components/DropZoneUI';
import FullScreenLoadingIndicator from '@components/FullscreenLoadingIndicator';
import Icon from '@components/Icon';
import * as Expensicons from '@components/Icon/Expensicons';
import {ExpensifyMobileApp} from '@components/Icon/Illustrations';
import LocationPermissionModal from '@components/LocationPermissionModal';
import PDFThumbnail from '@components/PDFThumbnail';
import PressableWithFeedback from '@components/Pressable/PressableWithFeedback';
Expand Down Expand Up @@ -53,6 +54,7 @@ import ReceiptDropUI from '@pages/iou/ReceiptDropUI';
import StepScreenDragAndDropWrapper from '@pages/iou/request/step/StepScreenDragAndDropWrapper';
import withFullTransactionOrNotFound from '@pages/iou/request/step/withFullTransactionOrNotFound';
import withWritableReportOrNotFound from '@pages/iou/request/step/withWritableReportOrNotFound';
import BillingBanner from '@pages/settings/Subscription/CardSection/BillingBanner/BillingBanner';
import variables from '@styles/variables';
import {
getMoneyRequestParticipantsFromReport,
Expand Down Expand Up @@ -968,6 +970,24 @@ function IOURequestStepScan({
receiptImageTopPosition={receiptImageTopPosition}
/>
)}
{platform !== CONST.PLATFORM.MOBILEWEB && !isMobile() && (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nyomanjyotisa It would be better to have this in platform specific files.

<View style={[styles.ph2, styles.mb2, styles.stickToBottom]}>
<BillingBanner
icon={ExpensifyMobileApp}
title={translate('common.getTheApp')}
subtitle={translate('common.scanReceiptsOnTheGo')}
subtitleStyle={[styles.mt1, styles.mutedTextLabel]}
style={[styles.borderRadiusComponentLarge, styles.hoveredComponentBG]}
rightComponent={
<Button
success
text={translate('common.download')}
onPress={() => Navigation.navigate(ROUTES.SETTINGS_APP_DOWNLOAD_LINKS)}
/>
}
/>
</View>
)}
<ConfirmModal
title={attachmentInvalidReasonTitle ? translate(attachmentInvalidReasonTitle) : ''}
onConfirm={hideReceiptModal}
Expand Down
Loading