Merge branch 'lowercase-labels' into 'master'
Transforms labels to lowercase Closes #212 See merge request bloodyhealth/drip!123
This commit is contained in:
@@ -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}/>
|
||||
|
||||
Reference in New Issue
Block a user