Skip to content

Commit 4ecd167

Browse files
chore: use official Merge icon
1 parent 014c955 commit 4ecd167

4 files changed

Lines changed: 9 additions & 18 deletions

File tree

app/component-library/components/Icons/Icon/Icon.assets.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ import flaskSVG from './assets/flask.svg';
117117
import flowerSVG from './assets/flower.svg';
118118
import folderSVG from './assets/folder.svg';
119119
import forestSVG from './assets/forest.svg';
120-
import frameSVG from './assets/frame.svg';
121120
import fullcircleSVG from './assets/full-circle.svg';
122121
import gasSVG from './assets/gas.svg';
123122
import giftSVG from './assets/gift.svg';
@@ -407,7 +406,6 @@ export const assetByIconName: AssetByIconName = {
407406
[IconName.Flower]: flowerSVG,
408407
[IconName.Folder]: folderSVG,
409408
[IconName.Forest]: forestSVG,
410-
[IconName.Frame]: frameSVG,
411409
[IconName.FullCircle]: fullcircleSVG,
412410
[IconName.Gas]: gasSVG,
413411
[IconName.Gift]: giftSVG,

app/component-library/components/Icons/Icon/Icon.types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ export enum IconName {
187187
Flower = 'Flower',
188188
Folder = 'Folder',
189189
Forest = 'Forest',
190-
Frame = 'Frame',
191190
FullCircle = 'FullCircle',
192191
Gas = 'Gas',
193192
Gift = 'Gift',

app/component-library/components/Icons/Icon/assets/frame.svg

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

app/components/Views/TradeWalletActions/TradeWalletActions.tsx

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,18 @@ import MaskedView from '@react-native-masked-view/masked-view';
22
import { useNavigation, useFocusEffect } from '@react-navigation/native';
33
import React, { useCallback, useMemo, useRef, useState } from 'react';
44
import {
5+
BackHandler,
56
Platform,
67
StyleSheet,
78
View,
9+
type ViewStyle,
810
useWindowDimensions,
9-
BackHandler,
1011
} from 'react-native';
1112
import Animated, {
1213
FadeInDown,
1314
FadeOutDown,
1415
runOnJS,
1516
} from 'react-native-reanimated';
16-
import LegacyIcon, {
17-
IconName as LegacyIconName,
18-
IconSize as LegacyIconSize,
19-
} from '../../../component-library/components/Icons/Icon';
2017
import Overlay from '../../../component-library/components/Overlay';
2118
import { useParams } from '../../../util/navigation/navUtils';
2219
import { Box } from '../../UI/Box/Box';
@@ -72,6 +69,9 @@ import useStakingEligibility from '../../UI/Stake/hooks/useStakingEligibility';
7269

7370
const bottomMaskHeight = 35;
7471
const animationDuration = AnimationDuration.Fast;
72+
const batchSellIconStyle = {
73+
transform: [{ rotate: '180deg' }],
74+
} satisfies ViewStyle;
7575

7676
interface TradeWalletActionsParams {
7777
onDismiss?: () => void;
@@ -314,13 +314,10 @@ function TradeWalletActions() {
314314
description={strings(
315315
'asset_overview.batch_sell_description',
316316
)}
317-
startAccessory={
318-
// eslint-disable-next-line @typescript-eslint/no-deprecated -- Frame is only available in the local icon registry.
319-
<LegacyIcon
320-
name={LegacyIconName.Frame}
321-
size={LegacyIconSize.Lg}
322-
/>
323-
}
317+
iconName={IconName.Merge}
318+
iconProps={{
319+
style: batchSellIconStyle,
320+
}}
324321
onPress={onBatchSell}
325322
testID={
326323
WalletActionsBottomSheetSelectorsIDs.BATCH_SELL_BUTTON

0 commit comments

Comments
 (0)