applies linter rules for max length
This commit is contained in:
+2
-1
@@ -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)
|
||||||
|
|||||||
+2
-1
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user