diff --git a/src/components/NewHathorButton.js b/src/components/NewHathorButton.js index 9d6d46080..7e073ea4e 100644 --- a/src/components/NewHathorButton.js +++ b/src/components/NewHathorButton.js @@ -8,7 +8,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { - StyleSheet, Text, TouchableOpacity, View, + StyleSheet, Text, TouchableOpacity } from 'react-native'; import { ViewPropTypes } from 'deprecated-react-native-prop-types'; import { COLORS } from '../styles/themes'; @@ -45,11 +45,23 @@ const NewHathorButton = (props) => { } return ( - - - {props.title} - - + + + {props.title} + + ); }; @@ -77,7 +89,9 @@ const style = StyleSheet.create({ borderRadius: 8, backgroundColor: COLORS.textColor, alignSelf: 'stretch', - padding: 16, + paddingHorizontal: 16, + justifyContent: 'center', + alignItems: 'center', }, wrapperDisabled: { backgroundColor: COLORS.textColorShadowOpacity005, @@ -98,12 +112,6 @@ const style = StyleSheet.create({ wrapperSecondaryDanger: { borderColor: COLORS.errorBgColor, }, - touchable: { - flex: 1, - flexDirection: 'row', - alignItems: 'center', - justifyContent: 'center', - }, text: { fontWeight: 'bold', fontSize: 14,