diff options
author | Hailey <me@haileyok.com> | 2024-02-12 11:16:56 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 11:16:56 -0800 |
commit | 9301ae68308db6d1fa8f78c17f0a117c2185ec6a (patch) | |
tree | a799b28a2417b5b0ef4bc1b27d59c089251e3bd0 /src | |
parent | 2ecfd106e800454213cc50d02933a63d6c08f7ee (diff) | |
download | voidsky-9301ae68308db6d1fa8f78c17f0a117c2185ec6a.tar.zst |
ios adult content link fix 🤦 (#2845)
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/modals/ContentFilteringSettings.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/view/com/modals/ContentFilteringSettings.tsx b/src/view/com/modals/ContentFilteringSettings.tsx index 21e03c569..328d23dc2 100644 --- a/src/view/com/modals/ContentFilteringSettings.tsx +++ b/src/view/com/modals/ContentFilteringSettings.tsx @@ -1,6 +1,6 @@ import React from 'react' import {LabelPreference} from '@atproto/api' -import {StyleSheet, Pressable, View} from 'react-native' +import {StyleSheet, Pressable, View, Linking} from 'react-native' import LinearGradient from 'react-native-linear-gradient' import {ScrollView} from './util' import {s, colors, gradients} from 'lib/styles' @@ -129,6 +129,10 @@ function AdultContentEnabledPref() { } }, [variables, preferences, mutate, _]) + const onAdultContentLinkPress = React.useCallback(() => { + Linking.openURL('https://bsky.app/') + }, []) + return ( <View style={s.mb10}> {isIOS ? ( @@ -138,8 +142,9 @@ function AdultContentEnabledPref() { Adult content can only be enabled via the Web at{' '} <TextLink style={pal.link} - href="https://bsky.app" + href="" text="bsky.app" + onPress={onAdultContentLinkPress} /> . </Trans> |