Skip to content
Snippets Groups Projects
Commit 9d89f002 authored by tina's avatar tina
Browse files

applies linter rules for max length

parent 5959b441
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,8 @@ export default class App extends Component { ...@@ -56,7 +56,8 @@ export default class App extends Component {
if (this.state.currentPage === 'Home') return false if (this.state.currentPage === 'Home') return false
if (isSymptomView(this.state.currentPage)) { if (isSymptomView(this.state.currentPage)) {
this.navigate( this.navigate(
this.originForSymptomView, { cycleDay: this.state.currentProps.cycleDay } this.originForSymptomView,
{ cycleDay: this.state.currentProps.cycleDay }
) )
} else if(this.state.currentPage === 'CycleDay') { } else if(this.state.currentPage === 'CycleDay') {
this.navigate(this.menuOrigin) this.navigate(this.menuOrigin)
......
...@@ -9,7 +9,8 @@ import Icon from 'react-native-vector-icons/MaterialCommunityIcons' ...@@ -9,7 +9,8 @@ import Icon from 'react-native-vector-icons/MaterialCommunityIcons'
export default class Menu extends Component { export default class Menu extends Component {
makeMenuItem = ({ title, icon, onPress}, i) => { makeMenuItem = ({ title, icon, onPress}, i) => {
const styleActive = (this.props.currentPage.toLowerCase() === title) ? {color: secondaryColor} : {} const styleActive = (this.props.currentPage.toLowerCase() === title) ?
{color: secondaryColor} : {}
return ( return (
<TouchableOpacity <TouchableOpacity
onPress={onPress} onPress={onPress}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment