Skip to content

Commit 9f561d4

Browse files
committed
fix lint
1 parent cb017f0 commit 9f561d4

1 file changed

Lines changed: 13 additions & 15 deletions

File tree

src/components/SelectionList/Search/TextWithIconCell.tsx

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ import React from 'react';
22
import {View} from 'react-native';
33
import type {StyleProp, TextStyle} from 'react-native';
44
import Icon from '@components/Icon';
5-
import Text from '@components/Text';
6-
import Tooltip from '@components/Tooltip';
5+
import TextWithTooltip from '@components/TextWithTooltip';
76
import useTheme from '@hooks/useTheme';
87
import useThemeStyles from '@hooks/useThemeStyles';
98
import type IconAsset from '@src/types/utils/IconAsset';
10-
import TextWithTooltip from '@components/TextWithTooltip';
119

1210
type TextWithIconCellProps = {
1311
icon: IconAsset;
@@ -26,17 +24,17 @@ export default function TextWithIconCell({icon, text, showTooltip, textStyle}: T
2624

2725
return (
2826
<View style={[styles.flexRow, styles.flexShrink1, styles.gap1]}>
29-
<Icon
30-
src={icon}
31-
fill={theme.icon}
32-
height={12}
33-
width={12}
34-
/>
35-
<TextWithTooltip
36-
text={text}
37-
shouldShowTooltip={showTooltip}
38-
style={[styles.optionDisplayName, styles.label, styles.pre, styles.justifyContentCenter, styles.textMicro, styles.textSupporting, styles.flexShrink1, textStyle]}
39-
/>
40-
</View>
27+
<Icon
28+
src={icon}
29+
fill={theme.icon}
30+
height={12}
31+
width={12}
32+
/>
33+
<TextWithTooltip
34+
text={text}
35+
shouldShowTooltip={showTooltip}
36+
style={[styles.optionDisplayName, styles.label, styles.pre, styles.justifyContentCenter, styles.textMicro, styles.textSupporting, styles.flexShrink1, textStyle]}
37+
/>
38+
</View>
4139
);
4240
}

0 commit comments

Comments
 (0)