Skip to content

Commit 93feb03

Browse files
committed
chore: remove allDetectedTokens assets references
1 parent 9c8f15e commit 93feb03

18 files changed

Lines changed: 1 addition & 1489 deletions

File tree

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ const utilNumberImportBurndownFiles = [
8383
'app/components/UI/TransactionElement/utils.js',
8484
'app/components/UI/UrlAutocomplete/Result.tsx',
8585
'app/components/Views/AssetDetails/index.tsx',
86-
'app/components/Views/DetectedTokens/components/Token.tsx',
8786
'app/components/Views/GasEducationCarousel/index.js',
8887
'app/components/Views/NetworksManagement/NetworkDetailsView/hooks/useNetworkValidation.ts',
8988
'app/components/Views/SocialLeaderboard/TraderPositionView/components/QuickBuyBottomSheet/useQuickBuyBottomSheet.ts',

app/components/Nav/App/App.test.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,6 @@ jest.mock('../../Views/LedgerSelectAccount', () => () => (
156156
jest.mock('../../Views/ConnectHardware/SelectHardware', () => () => (
157157
<MockView testID="mock-select-hw" />
158158
));
159-
jest.mock('../../Views/DetectedTokens', () => () => (
160-
<MockView testID="mock-detected-tokens" />
161-
));
162-
jest.mock('../../Views/DetectedTokensConfirmation', () => () => (
163-
<MockView testID="mock-detected-confirm" />
164-
));
165159
jest.mock('../../Views/WalletActions', () => () => (
166160
<MockView testID="mock-wallet-actions" />
167161
));
@@ -2275,13 +2269,5 @@ describe('App', () => {
22752269
expect(getByTestId('mock-trade-actions')).toBeTruthy();
22762270
});
22772271
});
2278-
2279-
it('renders DetectedTokens flow', async () => {
2280-
const { getByTestId } = renderAppWithModal('DetectedTokens');
2281-
2282-
await waitFor(() => {
2283-
expect(getByTestId('mock-detected-tokens')).toBeTruthy();
2284-
});
2285-
});
22862272
});
22872273
});

app/components/Nav/App/App.tsx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ import ConnectionDetails from '../../../components/Views/AccountPermissions/Conn
5555
import { SRPQuiz } from '../../Views/Quiz';
5656
import { TurnOffRememberMeModal } from '../../../components/UI/TurnOffRememberMeModal';
5757
import AssetHideConfirmation from '../../Views/AssetHideConfirmation';
58-
import DetectedTokens from '../../Views/DetectedTokens';
59-
import DetectedTokensConfirmation from '../../Views/DetectedTokensConfirmation';
6058
import AssetOptions from '../../Views/AssetOptions';
6159
import ImportPrivateKey from '../../Views/ImportPrivateKey';
6260
import ImportPrivateKeySuccess from '../../Views/ImportPrivateKeySuccess';
@@ -419,20 +417,6 @@ const AddNetworkFlow = () => {
419417
);
420418
};
421419

422-
const DetectedTokensFlow = () => (
423-
<Stack.Navigator
424-
screenOptions={clearStackNavigatorOptions}
425-
initialRouteName={'DetectedTokens'}
426-
>
427-
<Stack.Screen name={'DetectedTokens'} component={DetectedTokens} />
428-
<Stack.Screen
429-
name={'DetectedTokensConfirmation'}
430-
component={DetectedTokensConfirmation}
431-
options={{ presentation: 'modal' }}
432-
/>
433-
</Stack.Navigator>
434-
);
435-
436420
interface RootModalFlowProps {
437421
route: {
438422
params: Record<string, unknown>;
@@ -596,7 +580,6 @@ const RootModalFlow = (props: RootModalFlowProps) => (
596580
name={'AssetHideConfirmation'}
597581
component={AssetHideConfirmation}
598582
/>
599-
<Stack.Screen name={'DetectedTokens'} component={DetectedTokensFlow} />
600583
<Stack.Screen name={'AssetOptions'} component={AssetOptions} />
601584
<Stack.Screen name={'NftOptions'} component={NftOptions} />
602585
<Stack.Screen name={Routes.MODAL.UPDATE_NEEDED} component={UpdateNeeded} />

app/components/Views/DetectedTokens/DetectedTokensView.testIds.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

app/components/Views/DetectedTokens/components/Token.test.tsx

Lines changed: 0 additions & 145 deletions
This file was deleted.

0 commit comments

Comments
 (0)