Skip to content

Commit 97b953c

Browse files
authored
Merge branch 'main' into fix/remove-currency-rates
2 parents 08518c3 + 3d3f9c3 commit 97b953c

File tree

102 files changed

+3918
-702
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+3918
-702
lines changed

.github/workflows/run-e2e-workflow.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ jobs:
5353
test-e2e-mobile:
5454
name: ${{ inputs.test-suite-name }}
5555
runs-on: ${{ inputs.platform == 'ios' && 'ghcr.io/cirruslabs/macos-runner:sequoia' || 'ghcr.io/cirruslabs/ubuntu-runner-amd64:24.04-lg' }}
56-
concurrency:
57-
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.platform }}-${{ inputs.test-suite-name }}-${{ inputs.split_number }}
58-
cancel-in-progress: ${{ !(contains(github.ref, 'refs/heads/main') || contains(github.ref, 'refs/heads/stable')) }}
5956
outputs:
6057
apk-target-path: ${{ steps.determine-target-paths.outputs.apk-target-path }}
6158
test-apk-target-path: ${{ steps.determine-target-paths.outputs.test-apk-target-path }}

app/components/Nav/App/App.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ import FundActionMenu from '../../UI/FundActionMenu';
7272
import NetworkSelector from '../../../components/Views/NetworkSelector';
7373
import ReturnToAppNotification from '../../Views/ReturnToAppNotification';
7474
import EditAccountName from '../../Views/EditAccountName/EditAccountName';
75+
import CardNotification from '../../Views/CardNotification';
7576
import LegacyEditMultichainAccountName from '../../Views/MultichainAccounts/sheets/EditAccountName';
7677
import { EditMultichainAccountName } from '../../Views/MultichainAccounts/sheets/EditMultichainAccountName';
7778
import { PPOMView } from '../../../lib/ppom/PPOMView';
@@ -573,6 +574,10 @@ const RootModalFlow = (props: RootModalFlowProps) => (
573574
component={ReturnToAppNotification}
574575
initialParams={{ ...props.route.params }}
575576
/>
577+
<Stack.Screen
578+
name={Routes.CARD.NOTIFICATION}
579+
component={CardNotification}
580+
/>
576581
</Stack.Navigator>
577582
);
578583

app/components/Nav/Main/MainNavigator.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,6 @@ const WalletTabStackFlow = () => (
203203
component={Collectible}
204204
options={Collectible.navigationOptions}
205205
/>
206-
<Stack.Screen
207-
name="ConfirmAddAsset"
208-
component={ConfirmAddAsset}
209-
options={ConfirmAddAsset.navigationOptions}
210-
/>
211206
<Stack.Screen
212207
name={Routes.SETTINGS.REVEAL_PRIVATE_CREDENTIAL}
213208
component={RevealPrivateCredential}
@@ -945,6 +940,11 @@ const MainNavigator = () => {
945940
component={AddAsset}
946941
options={{ headerShown: false }}
947942
/>
943+
<Stack.Screen
944+
name="ConfirmAddAsset"
945+
component={ConfirmAddAsset}
946+
options={{ headerShown: true }}
947+
/>
948948
{isRewardsEnabled && (
949949
<Stack.Screen
950950
name={Routes.SETTINGS_VIEW}

app/components/Nav/Main/__snapshots__/MainNavigator.test.tsx.snap

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ exports[`MainNavigator matches rendered snapshot 1`] = `
5656
}
5757
}
5858
/>
59+
<Screen
60+
component={[Function]}
61+
name="ConfirmAddAsset"
62+
options={
63+
{
64+
"headerShown": true,
65+
}
66+
}
67+
/>
5968
<Screen
6069
component={[Function]}
6170
name="Asset"

app/components/UI/AssetOverview/AssetOverview.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ import { isNonEvmChainId } from '../../../core/Multichain/utils';
9797
import { selectTronResourcesBySelectedAccountGroup } from '../../../selectors/assets/assets-list';
9898
import { createStakedTrxAsset } from './utils/createStakedTrxAsset';
9999
///: END:ONLY_INCLUDE_IF
100+
import { getDetectedGeolocation } from '../../../reducers/fiatOrders';
100101

101102
interface AssetOverviewProps {
102103
asset: TokenI;
@@ -146,6 +147,8 @@ const AssetOverview: React.FC<AssetOverviewProps> = ({
146147
const tokenResult = useSelector((state: RootState) =>
147148
selectTokenDisplayData(state, asset.chainId as Hex, asset.address as Hex),
148149
);
150+
151+
const rampGeodetectedRegion = useSelector(getDetectedGeolocation);
149152
///: BEGIN:ONLY_INCLUDE_IF(keyring-snaps)
150153
const multichainAssetsRates = useSelector(selectMultichainAssetsRates);
151154

@@ -346,6 +349,7 @@ const AssetOverview: React.FC<AssetOverviewProps> = ({
346349
text: 'Buy',
347350
location: 'TokenDetails',
348351
chain_id_destination: getDecimalChainId(chainId),
352+
region: rampGeodetectedRegion,
349353
})
350354
.build(),
351355
);

app/components/UI/BalanceEmptyState/BalanceEmptyState.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { trace, TraceName } from '../../../util/trace';
2424
import { createBuyNavigationDetails } from '../Ramp/Aggregator/routes/utils';
2525
import { BalanceEmptyStateProps } from './BalanceEmptyState.types';
2626
import bankTransferImage from '../../../images/bank-transfer.png';
27+
import { getDetectedGeolocation } from '../../../reducers/fiatOrders';
2728

2829
/**
2930
* BalanceEmptyState smart component displays an empty state for wallet balance
@@ -37,6 +38,7 @@ const BalanceEmptyState: React.FC<BalanceEmptyStateProps> = ({
3738
const chainId = useSelector(selectChainId);
3839
const navigation = useNavigation();
3940
const { trackEvent, createEventBuilder } = useMetrics();
41+
const rampGeodetectedRegion = useSelector(getDetectedGeolocation);
4042

4143
const handleAction = () => {
4244
navigation.navigate(...createBuyNavigationDetails());
@@ -52,6 +54,7 @@ const BalanceEmptyState: React.FC<BalanceEmptyStateProps> = ({
5254
location: 'BalanceEmptyState',
5355
chain_id_destination: getDecimalChainId(chainId),
5456
ramp_type: 'BUY',
57+
region: rampGeodetectedRegion,
5558
})
5659
.build(),
5760
);
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export const POLYGON_NATIVE_TOKEN =
2+
'0x0000000000000000000000000000000000001010';

0 commit comments

Comments
 (0)