Introduces style definition update of Button component

This commit is contained in:
mashazyu
2020-03-30 09:23:33 +02:00
committed by Sofiya Tepikin
parent 1575aa29cd
commit eff15e67ee
+1 -1
View File
@@ -9,7 +9,7 @@ import { Colors, Fonts, Spacing } from '../../styles/redesign'
const Button = ({ children, isCTA, isSmall, onPress, testID }) => {
const buttonStyle = isCTA ? styles.cta : styles.regular
const textCTA = isCTA ? styles.buttonTextBold : styles.buttonTextRegular
const textStyle = isSmall ? [ textCTA, textSmall ] : [textCTA, text]
const textStyle = [ textCTA, isSmall ? textSmall : text]
return (
<TouchableOpacity onPress={onPress} style={buttonStyle} testID={testID}>