From 55acd26a39a54cb97504af8fa3e4b8136153283d Mon Sep 17 00:00:00 2001 From: mashazyu <mariya.z@gmail.com> Date: Mon, 3 Dec 2018 19:19:05 +0100 Subject: [PATCH] Transforms labels to lowercase --- components/chart/chart.js | 2 +- components/cycle-day/cycle-day-overview.js | 2 +- components/cycle-day/symptoms/action-button-footer.js | 3 +-- components/header/cycle-day.js | 5 +++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/chart/chart.js b/components/chart/chart.js index dc3be06c..6d7dff38 100644 --- a/components/chart/chart.js +++ b/components/chart/chart.js @@ -176,7 +176,7 @@ export default class CycleChart extends Component { styles.column.label.date, styles.yAxisLabels.dateLabel ]}> - {labels.date} + {labels.date.toLowerCase()} </AppText> </View> </View>} diff --git a/components/cycle-day/cycle-day-overview.js b/components/cycle-day/cycle-day-overview.js index 92b8ac02..88de3560 100644 --- a/components/cycle-day/cycle-day-overview.js +++ b/components/cycle-day/cycle-day-overview.js @@ -261,7 +261,7 @@ class SymptomBox extends Component { <View style={[styles.symptomBox, boxActive, disabledStyle]}> <DripIcon name={this.props.iconName} size={50} color={d ? 'white' : 'black'}/> <AppText style={[textActive, disabledStyle]}> - {this.props.title} + {this.props.title.toLowerCase()} </AppText> </View> <View style={[styles.symptomDataBox, disabledStyle]}> diff --git a/components/cycle-day/symptoms/action-button-footer.js b/components/cycle-day/symptoms/action-button-footer.js index 34585509..076b0bb8 100644 --- a/components/cycle-day/symptoms/action-button-footer.js +++ b/components/cycle-day/symptoms/action-button-footer.js @@ -64,7 +64,6 @@ export default class ActionButtonFooter extends Component { ) : iconStyles.menuIcon - return ( <TouchableOpacity onPress={action} @@ -74,7 +73,7 @@ export default class ActionButtonFooter extends Component { > <Icon name={icon} {...iconStyle} /> <Text style={textStyle}> - {title} + {title.toLowerCase()} </Text> </TouchableOpacity> ) diff --git a/components/header/cycle-day.js b/components/header/cycle-day.js index 332b3005..b5dbbdfb 100644 --- a/components/header/cycle-day.js +++ b/components/header/cycle-day.js @@ -10,7 +10,8 @@ import NavigationArrow from './navigation-arrow' const FormattedDate = ({ date }) => { const today = LocalDate.now() const dateToDisplay = LocalDate.parse(date) - return today.equals(dateToDisplay) ? 'today' : moment(date).format('MMMM Do YYYY') + const formattedDate = today.equals(dateToDisplay) ? 'today' : moment(date).format('MMMM Do YYYY') + return formattedDate.toLowerCase() } export default function CycleDayHeader({ date, ...props }) { @@ -26,7 +27,7 @@ export default function CycleDayHeader({ date, ...props }) { </Text> {props.cycleDayNumber && <Text style={styles.cycleDayNumber}> - Cycle day {props.cycleDayNumber} + {`Cycle day ${props.cycleDayNumber}`.toLowerCase()} </Text>} </View> <NavigationArrow direction='right' {...props}/> -- GitLab