Skip to content

Commit

Permalink
#400: Profile view: 'Events' and 'Requests' titles are not displayed
Browse files Browse the repository at this point in the history
facebook/react-native#21966
textTransform doesn’t work properly on the latest React Native version.
  • Loading branch information
DesmanLead committed Dec 24, 2018
1 parent 7dd6e74 commit 5cd7777
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mobile/src/employee-details/employee-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ export class EmployeeDetailsImpl extends Component<EmployeeDetailsProps & Employ
const actions = provider.getEventActions(events, this.props.employee, userPermissions, this.props.approvals);

return <View style={eventStyles.container}>
<StyledText style={layoutStyles.header}>Events</StyledText>
<StyledText style={layoutStyles.header}>{capitalizeFirstLetter('Events')}</StyledText>
<EmployeeDetailsEventsList
eventActions={actions}
hoursToIntervalTitle={this.props.hoursToIntervalTitle}
Expand All @@ -421,7 +421,7 @@ export class EmployeeDetailsImpl extends Component<EmployeeDetailsProps & Employ
);

return <View style={eventStyles.container}>
<StyledText style={layoutStyles.header}>Requests</StyledText>
<StyledText style={layoutStyles.header}>{capitalizeFirstLetter('Requests')}</StyledText>
<EmployeeDetailsEventsList
eventActions={actions}
hoursToIntervalTitle={this.props.hoursToIntervalTitle}
Expand Down
1 change: 0 additions & 1 deletion mobile/src/profile/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export const layoutStyles = StyleSheet.create({
header: {
alignSelf: 'center',
marginBottom: 5,
textTransform: 'capitalize',
},
avatarContainer: {
borderRadius: circleDiameter / 2,
Expand Down

0 comments on commit 5cd7777

Please sign in to comment.