Cleanup donation button fork on iOS

This commit is contained in:
Sofiya Tepikin
2022-07-10 19:04:30 +02:00
parent c311900e27
commit 3b45a32727
2 changed files with 10 additions and 16 deletions
+1 -8
View File
@@ -11,21 +11,19 @@ const Button = ({
children,
iconName,
isCTA,
isVisible,
isSmall,
onPress,
testID,
...props
}) => {
const buttonStyle = isCTA ? styles.cta : styles.regular
const buttonDisplay = isVisible ? styles.isVisible : null
const textCTA = isCTA ? styles.buttonTextBold : styles.buttonTextRegular
const textStyle = [textCTA, isSmall ? textSmall : text]
return (
<TouchableOpacity
onPress={onPress}
style={[buttonStyle, buttonDisplay]}
style={buttonStyle}
testID={testID}
{...props}
>
@@ -39,7 +37,6 @@ Button.propTypes = {
children: PropTypes.node,
iconName: PropTypes.string,
isCTA: PropTypes.bool,
isVisible: PropTypes.bool,
isSmall: PropTypes.bool,
onPress: PropTypes.func,
testID: PropTypes.string,
@@ -79,10 +76,6 @@ const styles = StyleSheet.create({
borderRadius: 25,
...button,
},
isVisible: {
display: 'none',
...button,
},
buttonTextBold: {
color: 'white',
fontFamily: Fonts.bold,