From 9301ae68308db6d1fa8f78c17f0a117c2185ec6a Mon Sep 17 00:00:00 2001 From: Hailey Date: Mon, 12 Feb 2024 11:16:56 -0800 Subject: [PATCH] =?UTF-8?q?ios=20adult=20content=20link=20fix=20?= =?UTF-8?q?=F0=9F=A4=A6=20(#2845)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/view/com/modals/ContentFilteringSettings.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/view/com/modals/ContentFilteringSettings.tsx b/src/view/com/modals/ContentFilteringSettings.tsx index 21e03c569d..328d23dc29 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 ( {isIOS ? ( @@ -138,8 +142,9 @@ function AdultContentEnabledPref() { Adult content can only be enabled via the Web at{' '} .