Skip to content

Commit

Permalink
feat: [#174338921] Convert app version to simple text not a button (#…
Browse files Browse the repository at this point in the history
…2163)

Co-authored-by: fabriziofff <[email protected]>
  • Loading branch information
CrisTofani and fabriziofff authored Aug 25, 2020
1 parent 4f5a524 commit a56e0af
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions ts/screens/profile/ProfileMainScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,16 @@ class ProfileMainScreen extends React.PureComponent<Props, State> {
);
}

private versionListItem(title: string, onPress: () => void) {
return (
<ListItem style={styles.noRightPadding}>
<Text numberOfLines={1} semibold={true} onPress={onPress}>
{title}
</Text>
</ListItem>
);
}

private onLogoutPress = () => {
Alert.alert(
I18n.t("profile.logout.menulabel"),
Expand Down Expand Up @@ -424,10 +434,9 @@ class ProfileMainScreen extends React.PureComponent<Props, State> {
isLastItem={true}
/>

{this.debugListItem(
{this.versionListItem(
`${I18n.t("profile.main.appVersion")} ${getAppVersion()}`,
this.onTapAppVersion,
false
this.onTapAppVersion
)}

{/* Developers Section */}
Expand Down

0 comments on commit a56e0af

Please sign in to comment.