From 3b45a32727bc0cd421d76bb4efdc1c2fcc055e97 Mon Sep 17 00:00:00 2001 From: Sofiya Tepikin Date: Sun, 10 Jul 2022 19:04:30 +0200 Subject: [PATCH] Cleanup donation button fork on iOS --- components/common/button.js | 9 +-------- components/settings/about.js | 17 +++++++++-------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/components/common/button.js b/components/common/button.js index cfb73b4..4cf588b 100644 --- a/components/common/button.js +++ b/components/common/button.js @@ -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 ( @@ -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, diff --git a/components/settings/about.js b/components/settings/about.js index e9b8963..25ff929 100644 --- a/components/settings/about.js +++ b/components/settings/about.js @@ -36,14 +36,15 @@ const AboutSection = () => { {labels.donate.note} - + {Platform.OS !== 'ios' && ( + + )} {require('../../package.json').version}