Transforms labels to lowercase

This commit is contained in:
mashazyu
2018-12-03 19:19:05 +01:00
parent 28a809fb5c
commit 55acd26a39
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ export default class CycleChart extends Component {
styles.column.label.date, styles.column.label.date,
styles.yAxisLabels.dateLabel styles.yAxisLabels.dateLabel
]}> ]}>
{labels.date} {labels.date.toLowerCase()}
</AppText> </AppText>
</View> </View>
</View>} </View>}
+1 -1
View File
@@ -261,7 +261,7 @@ class SymptomBox extends Component {
<View style={[styles.symptomBox, boxActive, disabledStyle]}> <View style={[styles.symptomBox, boxActive, disabledStyle]}>
<DripIcon name={this.props.iconName} size={50} color={d ? 'white' : 'black'}/> <DripIcon name={this.props.iconName} size={50} color={d ? 'white' : 'black'}/>
<AppText style={[textActive, disabledStyle]}> <AppText style={[textActive, disabledStyle]}>
{this.props.title} {this.props.title.toLowerCase()}
</AppText> </AppText>
</View> </View>
<View style={[styles.symptomDataBox, disabledStyle]}> <View style={[styles.symptomDataBox, disabledStyle]}>
@@ -64,7 +64,6 @@ export default class ActionButtonFooter extends Component {
) )
: :
iconStyles.menuIcon iconStyles.menuIcon
return ( return (
<TouchableOpacity <TouchableOpacity
onPress={action} onPress={action}
@@ -74,7 +73,7 @@ export default class ActionButtonFooter extends Component {
> >
<Icon name={icon} {...iconStyle} /> <Icon name={icon} {...iconStyle} />
<Text style={textStyle}> <Text style={textStyle}>
{title} {title.toLowerCase()}
</Text> </Text>
</TouchableOpacity> </TouchableOpacity>
) )
+3 -2
View File
@@ -10,7 +10,8 @@ import NavigationArrow from './navigation-arrow'
const FormattedDate = ({ date }) => { const FormattedDate = ({ date }) => {
const today = LocalDate.now() const today = LocalDate.now()
const dateToDisplay = LocalDate.parse(date) 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 }) { export default function CycleDayHeader({ date, ...props }) {
@@ -26,7 +27,7 @@ export default function CycleDayHeader({ date, ...props }) {
</Text> </Text>
{props.cycleDayNumber && {props.cycleDayNumber &&
<Text style={styles.cycleDayNumber}> <Text style={styles.cycleDayNumber}>
Cycle day {props.cycleDayNumber} {`Cycle day ${props.cycleDayNumber}`.toLowerCase()}
</Text>} </Text>}
</View> </View>
<NavigationArrow direction='right' {...props}/> <NavigationArrow direction='right' {...props}/>