Feature: Remove donate button for iOS
This commit is contained in:
committed by
Marie Kochsiek
parent
68d8a55034
commit
8721bc484c
@@ -1,5 +1,5 @@
|
||||
import React from 'react'
|
||||
import { Linking } from 'react-native'
|
||||
import { Platform, Linking } from 'react-native'
|
||||
|
||||
import AppPage from '../common/app-page'
|
||||
import AppText from '../common/app-text'
|
||||
@@ -36,7 +36,12 @@ const AboutSection = () => {
|
||||
</Segment>
|
||||
<Segment title={labels.donate.title}>
|
||||
<AppText>{labels.donate.note}</AppText>
|
||||
<Button isCTA isSmall onPress={() => Linking.openURL(links.donate.url)}>
|
||||
<Button
|
||||
isVisible={Platform.OS === 'ios' ? true : false}
|
||||
isCTA
|
||||
isSmall
|
||||
onPress={() => Linking.openURL(links.donate.url)}
|
||||
>
|
||||
{links.donate.text}
|
||||
</Button>
|
||||
</Segment>
|
||||
|
||||
Reference in New Issue
Block a user