remove rule

This commit is contained in:
GleidsonDaniel 2022-05-09 15:22:50 -03:00
parent 06e114416e
commit 7bcfef7059
2 changed files with 5 additions and 5 deletions

View File

@ -13,14 +13,14 @@ interface SidebarItemProps {
text: string; text: string;
current?: boolean; current?: boolean;
onPress(): void; onPress(): void;
test: string; testID: string;
theme: TSupportedThemes; theme: TSupportedThemes;
} }
const Item = React.memo(({ left, right, text, onPress, test, current, theme }: SidebarItemProps) => ( const Item = React.memo(({ left, right, text, onPress, testID, current, theme }: SidebarItemProps) => (
<Touch <Touch
key={test} key={testID}
{...testProps(test)} {...testProps(testID)}
onPress={onPress} onPress={onPress}
theme={theme} theme={theme}
style={[styles.item, current && { backgroundColor: themes[theme].borderColor }]} style={[styles.item, current && { backgroundColor: themes[theme].borderColor }]}

View File

@ -229,7 +229,7 @@ class Sidebar extends Component<ISidebarProps, ISidebarState> {
theme={theme} theme={theme}
right={<CustomIcon name='edit' size={20} color={themes[theme].titleText} />} right={<CustomIcon name='edit' size={20} color={themes[theme].titleText} />}
onPress={() => this.sidebarNavigate('StatusView')} onPress={() => this.sidebarNavigate('StatusView')}
test='sidebar-custom-status' testID='sidebar-custom-status'
/> />
); );
}; };