From 890d66849ec6bd5591a72140da9613ad7cae4340 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 17 Jan 2025 18:17:33 -0600 Subject: [PATCH] Wrap interstitials with BlockDrawerGesture --- .../interstitials/TrendingVideos.tsx | 65 +++++++++--------- .../components/ExploreTrendingVideos.tsx | 67 ++++++++++--------- 2 files changed, 69 insertions(+), 63 deletions(-) diff --git a/src/components/interstitials/TrendingVideos.tsx b/src/components/interstitials/TrendingVideos.tsx index d41371bcb7..9a08485536 100644 --- a/src/components/interstitials/TrendingVideos.tsx +++ b/src/components/interstitials/TrendingVideos.tsx @@ -9,6 +9,7 @@ import {makeCustomFeedLink} from '#/lib/routes/links' import {logEvent} from '#/lib/statsig/statsig' import {useTrendingSettingsApi} from '#/state/preferences/trending' import {usePostFeedQuery} from '#/state/queries/post-feed' +import {BlockDrawerGesture} from '#/view/shell/BlockDrawerGesture' import {atoms as a, useGutters, useTheme} from '#/alf' import {Button, ButtonIcon} from '#/components/Button' import {ChevronRight_Stroke2_Corner0_Rounded as ChevronRight} from '#/components/icons/Chevron' @@ -75,37 +76,39 @@ export function TrendingVideos() { - - - {isLoading ? ( - Array(10) - .fill(0) - .map((_, i) => ( - - - - )) - ) : error || !data ? ( - - Whoops! Trending videos failed to load. - - ) : ( - - )} - - + + + + {isLoading ? ( + Array(10) + .fill(0) + .map((_, i) => ( + + + + )) + ) : error || !data ? ( + + Whoops! Trending videos failed to load. + + ) : ( + + )} + + + - - - {isLoading ? ( - Array(10) - .fill(0) - .map((_, i) => ( - - - - )) - ) : error || !data ? ( - - Whoops! Trending videos failed to load. - - ) : ( - - )} - - + + + + {isLoading ? ( + Array(10) + .fill(0) + .map((_, i) => ( + + + + )) + ) : error || !data ? ( + + Whoops! Trending videos failed to load. + + ) : ( + + )} + + + {!isSavedAlready && (