applies linter rules for max length

This commit is contained in:
tina
2018-11-07 14:46:33 +01:00
parent 5959b44142
commit 9d89f0022c
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -56,7 +56,8 @@ export default class App extends Component {
if (this.state.currentPage === 'Home') return false
if (isSymptomView(this.state.currentPage)) {
this.navigate(
this.originForSymptomView, { cycleDay: this.state.currentProps.cycleDay }
this.originForSymptomView,
{ cycleDay: this.state.currentProps.cycleDay }
)
} else if(this.state.currentPage === 'CycleDay') {
this.navigate(this.menuOrigin)
+2 -1
View File
@@ -9,7 +9,8 @@ import Icon from 'react-native-vector-icons/MaterialCommunityIcons'
export default class Menu extends Component {
makeMenuItem = ({ title, icon, onPress}, i) => {
const styleActive = (this.props.currentPage.toLowerCase() === title) ? {color: secondaryColor} : {}
const styleActive = (this.props.currentPage.toLowerCase() === title) ?
{color: secondaryColor} : {}
return (
<TouchableOpacity
onPress={onPress}