Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export default [

'src/components/themed/LineTextDivider.tsx',
'src/components/themed/MainButton.tsx',
'src/components/themed/ManageTokensRow.tsx',

'src/components/themed/MenuTabs.tsx',
'src/components/themed/ModalParts.tsx',
'src/components/themed/PinDots.tsx',
Expand Down
18 changes: 9 additions & 9 deletions src/components/themed/ManageTokensRow.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { EdgeCurrencyWallet, EdgeToken } from 'edge-core-js'
import * as React from 'react'
import { Pressable, Switch, View } from 'react-native'
import FontAwesomeIcon from 'react-native-vector-icons/FontAwesome'

import { approveTokenTerms } from '../../actions/TokenTermsActions'
import { useHandler } from '../../hooks/useHandler'
Expand All @@ -10,6 +9,7 @@ import { useSelector } from '../../types/reactRedux'
import type { EdgeAppSceneProps } from '../../types/routerTypes'
import { EdgeTouchableOpacity } from '../common/EdgeTouchableOpacity'
import { CryptoIcon } from '../icons/CryptoIcon'
import { EditIcon } from '../icons/ThemedIcons'
import { showError } from '../services/AirshipInstance'
import { cacheStyles, type Theme, useTheme } from '../services/ThemeContext'
import { EdgeText } from './EdgeText'
Expand Down Expand Up @@ -100,14 +100,14 @@ export const ManageTokensRowComponent: React.FC<Props> = props => {
<EdgeText style={styles.displayName}>{token.displayName}</EdgeText>
</View>
{!isCustom ? null : (
<EdgeTouchableOpacity style={styles.editIcon} onPress={handleEdit}>
<FontAwesomeIcon
color={theme.iconTappable}
name="edit"
size={theme.rem(1)}
accessibilityHint={lstrings.edit_icon_hint}
accessibilityRole="button"
/>
<EdgeTouchableOpacity
accessibilityHint={lstrings.edit_icon_hint}
accessibilityRole="button"
style={styles.editIcon}
testID={`manageTokensRow.${token.currencyCode}.${token.displayName}.edit`}
onPress={handleEdit}
>
<EditIcon color={theme.iconTappable} size={theme.rem(1)} />
</EdgeTouchableOpacity>
)}
<View pointerEvents="none" style={styles.switchBox}>
Expand Down
Loading