Skip to content

Commit d96ea47

Browse files
committed
fix(suite-native): remove the Sync my coins button from the Home screen
1 parent bd2b044 commit d96ea47

File tree

2 files changed

+9
-37
lines changed

2 files changed

+9
-37
lines changed

suite-native/intl/src/en.ts

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ export const en = {
6767
},
6868
},
6969
buttons: {
70-
syncMyCoins: 'Sync my coins',
7170
receive: 'Receive',
7271
},
7372
biometricsModal: {

suite-native/module-home/src/screens/HomeScreen/components/PortfolioContent.tsx

+9-36
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ import { forwardRef } from 'react';
33

44
import { useNavigation } from '@react-navigation/native';
55

6-
import { Box, Button, Divider, VStack } from '@suite-native/atoms';
6+
import { Box, Button, VStack } from '@suite-native/atoms';
77
import { Assets } from '@suite-native/assets';
8-
import { FeatureFlag, useFeatureFlag } from '@suite-native/feature-flags';
98
import {
10-
AccountsImportStackRoutes,
119
RootStackParamList,
1210
RootStackRoutes,
1311
StackNavigationProps,
@@ -22,14 +20,6 @@ export const PortfolioContent = forwardRef<PortfolioGraphRef>((_props, ref) => {
2220

2321
const isPortfolioTrackerDevice = useSelector(selectIsPortfolioTrackerDevice);
2422

25-
const [isUsbDeviceConnectFeatureEnabled] = useFeatureFlag(FeatureFlag.IsDeviceConnectEnabled);
26-
27-
const handleImportAssets = () => {
28-
navigation.navigate(RootStackRoutes.AccountsImport, {
29-
screen: AccountsImportStackRoutes.SelectNetwork,
30-
});
31-
};
32-
3323
const handleReceive = () => {
3424
navigation.navigate(RootStackRoutes.ReceiveModal, { closeActionType: 'back' });
3525
};
@@ -42,31 +32,14 @@ export const PortfolioContent = forwardRef<PortfolioGraphRef>((_props, ref) => {
4232
<Assets />
4333
</Box>
4434
{isPortfolioTrackerDevice && (
45-
<Box marginBottom="sp8">
46-
<Button
47-
testID="@home/portfolio/sync-coins-button"
48-
colorScheme="tertiaryElevation0"
49-
size="large"
50-
onPress={handleImportAssets}
51-
>
52-
<Translation id="moduleHome.buttons.syncMyCoins" />
53-
</Button>
54-
</Box>
55-
)}
56-
{!isUsbDeviceConnectFeatureEnabled && (
57-
<>
58-
<Divider />
59-
<Box>
60-
<Button
61-
data-testID="@home/portolio/recieve-button"
62-
size="large"
63-
onPress={handleReceive}
64-
viewLeft="arrowLineDown"
65-
>
66-
<Translation id="moduleHome.buttons.receive" />
67-
</Button>
68-
</Box>
69-
</>
35+
<Button
36+
data-testID="@home/portolio/recieve-button"
37+
size="large"
38+
onPress={handleReceive}
39+
viewLeft="arrowLineDown"
40+
>
41+
<Translation id="moduleHome.buttons.receive" />
42+
</Button>
7043
)}
7144
</VStack>
7245
</VStack>

0 commit comments

Comments
 (0)