Skip to content

Commit

Permalink
chore: More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gambinish committed Oct 23, 2024
1 parent 6a4a64e commit 1dfd1bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const TokenSortBottomSheet = () => {
const tokenSortConfig = useSelector(selectTokenSortConfig);
const currentCurrency = useSelector(selectCurrentCurrency);

const onSortControlsActionSheetPress = (index: number) => {
const onSortControlsBottomSheetPress = (index: number) => {
const { PreferencesController } = Engine.context;
switch (index) {
case 0:
Expand Down Expand Up @@ -66,14 +66,14 @@ const TokenSortBottomSheet = () => {
] ?? currentCurrency,
})}
isSelected={tokenSortConfig.key === 'tokenFiatAmount'}
onPress={() => onSortControlsActionSheetPress(0)}
onPress={() => onSortControlsBottomSheetPress(0)}
/>
<Cell
testID={WalletViewSelectorsIDs.SORT_ALPHABETICAL}
variant={CellVariant.Select}
title={strings('wallet.alphabetically')}
isSelected={tokenSortConfig.key !== 'tokenFiatAmount'}
onPress={() => onSortControlsActionSheetPress(1)}
onPress={() => onSortControlsBottomSheetPress(1)}
/>
</View>
</BottomSheet>
Expand Down
1 change: 0 additions & 1 deletion app/components/UI/Tokens/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jest.mock('../../../core/NotificationManager', () => ({
showSimpleNotification: jest.fn(() => Promise.resolve()),
}));

// Mock the createTokensBottomSheetNavDetails function with an implementation
jest.mock('./TokensBottomSheet', () => ({
createTokensBottomSheetNavDetails: jest.fn(() => ['BottomSheetScreen', {}]),
}));
Expand Down

0 comments on commit 1dfd1bf

Please sign in to comment.