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.column.label.date,
|
||||||
styles.yAxisLabels.dateLabel
|
styles.yAxisLabels.dateLabel
|
||||||
]}>
|
]}>
|
||||||
{labels.date}
|
{labels.date.toLowerCase()}
|
||||||
</AppText>
|
</AppText>
|
||||||
</View>
|
</View>
|
||||||
</View>}
|
</View>}
|
||||||
|
|||||||
@@ -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>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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}/>
|
||||||
|
|||||||
Reference in New Issue
Block a user