Feature: Remove donate button for iOS

This commit is contained in:
BloodyMarie
2022-05-22 15:02:20 +02:00
committed by Marie Kochsiek
parent 68d8a55034
commit 8721bc484c
2 changed files with 25 additions and 13 deletions
+7 -2
View File
@@ -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>