remove rule
This commit is contained in:
parent
06e114416e
commit
7bcfef7059
|
@ -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 }]}
|
||||||
|
|
|
@ -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'
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue