Skip to content

Commit

Permalink
Misc.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivgraai committed Jun 22, 2020
1 parent a806e40 commit d11a116
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components/DateTimePickerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const dateTimePickerHeader: HeaderComponent = ({ label }) => {
const dateTimePickerButton = (buttonStyle: string, textStyle: string) => (({ isDarkModeEnabled, onPress, label }: { isDarkModeEnabled: boolean, onPress: () => void, label: string }) => (
<TouchableHighlight
style={styles(isDarkModeEnabled)[buttonStyle]}
underlayColor={isDarkModeEnabled ? Colors.bodyDarkColor : Colors.bodyLightColor}
underlayColor={isDarkModeEnabled ? "#0E0E0E" : "white"}
onPress={onPress}
>
<Text style={styles(isDarkModeEnabled)[textStyle]}>{label}</Text>
Expand Down
2 changes: 1 addition & 1 deletion constants/Layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ export default {
widthPercentageAsString: width + '%',
widthPercentageAsNumber: width,
margin: PixelRatio.getPixelSizeForLayoutSize(2.5),
biggerFontSize: 18
largerFontSize: 18
};
4 changes: 2 additions & 2 deletions constants/styles/DateTimePickerModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Layout from "../Layout";
import Colors from "../Colors";

const backgroundColor = "transparent";
const fontSize = PixelRatio.getFontScale() * Layout.biggerFontSize;
const fontSize = PixelRatio.getFontScale() * Layout.largerFontSize;
const buttonHeight = PixelRatio.getPixelSizeForLayoutSize(23.5);
const buttonFontWeight = "normal";

Expand Down Expand Up @@ -38,7 +38,7 @@ export const styles: any = (isDark: boolean) => StyleSheet.create({
height: buttonHeight,
marginBottom: 0,
justifyContent: "center",
backgroundColor: isDark ? Colors.bodyDarkColor : Colors.bodyLightColor
backgroundColor: isDark ? "#0E0E0E" : "white"
},
cancelText: {
padding: PixelRatio.getPixelSizeForLayoutSize(5),
Expand Down
2 changes: 1 addition & 1 deletion constants/styles/DetailsScreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const styles = (isDark: boolean) => StyleSheet.create({
warnText: {
textAlign: "center",
color: Colors.tintColor,
fontSize: PixelRatio.getFontScale() * Layout.biggerFontSize,
fontSize: PixelRatio.getFontScale() * Layout.largerFontSize,
marginTop: margin * 3.5
},
dataText: {
Expand Down
2 changes: 1 addition & 1 deletion constants/styles/UserScreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const styles = StyleSheet.create({
letterSpacing: Layout.letterSpacing
},
messageText: {
fontSize: PixelRatio.getFontScale() * Layout.biggerFontSize,
fontSize: PixelRatio.getFontScale() * Layout.largerFontSize,
color: Colors.errorText,
textAlign: "center",
flex: 9
Expand Down
2 changes: 1 addition & 1 deletion screens/UserScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class UserScreen extends React.Component<IProps, IState> {
HttpClient.register(this.name, this.email, this.password)
.then(response => {
if (response.ok) {
Alert.alert(i18n.youHaveSuccessfullysignedUp.toUpperCase(), '', [{
Alert.alert(i18n.youHaveSuccessfullysignedUp.capitalize() + '!', '', [{
text: i18n.signIn.toUpperCase(), onPress: () => this.setState({switched: false})
}]);
} else {
Expand Down

0 comments on commit d11a116

Please sign in to comment.