From eff15e67ee53a3e919fdfc4df30397769c54a9af Mon Sep 17 00:00:00 2001 From: mashazyu Date: Mon, 30 Mar 2020 09:23:33 +0200 Subject: [PATCH] Introduces style definition update of Button component --- components/common/button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/common/button.js b/components/common/button.js index 8adf7ea..e7bc7e4 100644 --- a/components/common/button.js +++ b/components/common/button.js @@ -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 (