Repository navigation
[Payment due @ZhenjaHorbach] [NoQA][Wise][Release 1] Business - UI - Entry Point Workspace #104485
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
Merged
grgia
merged 7 commits into
Expensify:main
from
software-mansion-labs:wise-global-reimbursements-workspace-entry-point
Oct 21, 2026
+457
−152
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6db0e50
feat: add Wise global reimbursements banner to Workspace Workflows pa…
WojtekBoman 79b1c6b
refactor: open Wise global reimbursements intro via dynamic route
WojtekBoman 6560138
docs: replace arrow with plain words in Wise banner bank account comment
WojtekBoman ad49197
fix: fall back to bankCurrency when checking Wise global reimbursemen…
WojtekBoman af3023a
fix: move Enable Global Reimbursements to second item in Wallet bank …
WojtekBoman b8c2b6a
feat: add close tooltip to Wise global reimbursements banner
WojtekBoman 9d3fc0a
Merge branch 'main' into wise-global-reimbursements-workspace-entry-p…
WojtekBoman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| import {useMemoizedLazyExpensifyIcons, useMemoizedLazyIllustrations} from '@hooks/useLazyAsset'; | ||
| import useLocalize from '@hooks/useLocalize'; | ||
| import useResponsiveLayout from '@hooks/useResponsiveLayout'; | ||
| import useThemeStyles from '@hooks/useThemeStyles'; | ||
|
|
||
| import BillingBanner from '@pages/settings/Subscription/CardSection/BillingBanner/BillingBanner'; | ||
|
|
||
| import CONST from '@src/CONST'; | ||
|
|
||
| import React from 'react'; | ||
| import {View} from 'react-native'; | ||
|
|
||
| import Button from './Button'; | ||
|
|
||
| type WiseGlobalReimbursementsBannerProps = { | ||
| /** Opens the global reimbursements intro page */ | ||
| onGetStartedPress: () => void; | ||
|
|
||
| /** Hides the banner for good */ | ||
| onDismissPress: () => void; | ||
|
|
||
| /** Sentry labels of the "Get started" and close buttons */ | ||
| sentryLabels: {CTA: string; DISMISS: string}; | ||
| }; | ||
|
|
||
| /** The "Pay people worldwide" banner promoting Wise global reimbursements. Callers decide when it shows and what its buttons do */ | ||
| function WiseGlobalReimbursementsBanner({onGetStartedPress, onDismissPress, sentryLabels}: WiseGlobalReimbursementsBannerProps) { | ||
| const styles = useThemeStyles(); | ||
| const {translate} = useLocalize(); | ||
| const {shouldUseNarrowLayout, isInLandscapeMode} = useResponsiveLayout(); | ||
| const illustrations = useMemoizedLazyIllustrations(['EarthWithCoins']); | ||
| const expensifyIcons = useMemoizedLazyExpensifyIcons(['Close']); | ||
|
|
||
| const shouldDisplayButtonInSeparateLine = shouldUseNarrowLayout && !isInLandscapeMode; | ||
|
|
||
| return ( | ||
| <BillingBanner | ||
| icon={illustrations.EarthWithCoins} | ||
| title={translate('walletPage.wiseGlobalReimbursementsBanner.title')} | ||
| subtitle={translate('walletPage.wiseGlobalReimbursementsBanner.subtitle')} | ||
| subtitleStyle={[styles.mt1, styles.textLabel]} | ||
| style={styles.borderRadiusComponentLarge} | ||
| rightIcon={expensifyIcons.Close} | ||
| onRightIconPress={onDismissPress} | ||
| rightIconAccessibilityLabel={translate('common.dismiss')} | ||
| rightIconTooltipText={translate('common.close')} | ||
| rightIconSentryLabel={sentryLabels.DISMISS} | ||
| rightComponent={ | ||
| <View style={shouldDisplayButtonInSeparateLine ? [styles.flex0, styles.flexBasis100, styles.maxWidth100Percentage, styles.justifyContentCenter] : undefined}> | ||
| <Button | ||
| variant={CONST.BUTTON_VARIANT.SUCCESS} | ||
| onPress={onGetStartedPress} | ||
| sentryLabel={sentryLabels.CTA} | ||
| > | ||
| <Button.Text>{translate('walletPage.wiseGlobalReimbursementsIntro.getStarted')}</Button.Text> | ||
| </Button> | ||
| </View> | ||
| } | ||
| /> | ||
| ); | ||
| } | ||
|
|
||
| export default WiseGlobalReimbursementsBanner; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
lol sob this needs auth change too