From 73dd1b493aaa01b37889af99a76a5af338ab7d45 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Sat, 18 Jan 2025 14:38:20 -0600 Subject: [PATCH] Add info dialog button --- src/screens/VideoFeed/index.tsx | 60 ++++++++++++++++++++++++++++----- 1 file changed, 51 insertions(+), 9 deletions(-) diff --git a/src/screens/VideoFeed/index.tsx b/src/screens/VideoFeed/index.tsx index b439a90370..1e9f286adb 100644 --- a/src/screens/VideoFeed/index.tsx +++ b/src/screens/VideoFeed/index.tsx @@ -48,8 +48,6 @@ import { } from '@react-navigation/native' import {NativeStackScreenProps} from '@react-navigation/native-stack' -import {EyeSlash_Stroke2_Corner0_Rounded as Eye} from '#/components/icons/EyeSlash' -import * as Hider from '#/components/moderation/Hider' import {HITSLOP_20} from '#/lib/constants' import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback' import {moderatePost_wrapped as moderatePost} from '#/lib/moderatePost_wrapped' @@ -83,10 +81,13 @@ import {Header} from '#/screens/VideoFeed/components/Header' import {atoms as a, platform, ThemeProvider, tokens, useTheme} from '#/alf' import {setNavigationBar} from '#/alf/util/navigationBar' import {Button, ButtonIcon, ButtonText} from '#/components/Button' +import {Divider} from '#/components/Divider' import {Check_Stroke2_Corner0_Rounded as CheckIcon} from '#/components/icons/Check' +import {EyeSlash_Stroke2_Corner0_Rounded as Eye} from '#/components/icons/EyeSlash' import * as Layout from '#/components/Layout' import {Link} from '#/components/Link' import {ListFooter} from '#/components/Lists' +import * as Hider from '#/components/moderation/Hider' import {RichText} from '#/components/RichText' import {Text} from '#/components/Typography' @@ -560,7 +561,7 @@ function ModerationOverlay({ const onShow = React.useCallback(() => { hider.setIsContentVisible(true) onPressShow() - }, [hider]) + }, [hider, onPressShow]) return ( @@ -589,6 +590,48 @@ function ModerationOverlay({ + + + + + + + + ) @@ -631,15 +674,14 @@ function Overlay({ opacity: 1 - seekingAnimationSV.get(), })) + const onPressShow = React.useCallback(() => { + player?.play() + }, [player]) + return ( - { - player?.play() - }} - /> +