Skip to content
Snippets Groups Projects
Commit 55acd26a authored by mashazyu's avatar mashazyu
Browse files

Transforms labels to lowercase

parent 28a809fb
No related branches found
No related tags found
No related merge requests found
......@@ -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>}
......
......@@ -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]}>
......
......@@ -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>
)
......
......@@ -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}/>
......
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