diff --git a/src/components/interstitials/Trending.tsx b/src/components/interstitials/Trending.tsx index a217a7da2d..9a5feb2b66 100644 --- a/src/components/interstitials/Trending.tsx +++ b/src/components/interstitials/Trending.tsx @@ -11,6 +11,7 @@ import { } from '#/state/preferences/trending' import {useTrendingTopics} from '#/state/queries/trending/useTrendingTopics' import {useTrendingConfig} from '#/state/trending-config' +import {LoadingPlaceholder} from '#/view/com/util/LoadingPlaceholder' import {atoms as a, useGutters, useTheme} from '#/alf' import {Button, ButtonIcon} from '#/components/Button' import {TimesLarge_Stroke2_Corner0_Rounded as X} from '#/components/icons/Times' @@ -50,7 +51,32 @@ export function Inner() { {isLoading ? ( - + + + + + + {' '} diff --git a/src/view/com/util/LoadingPlaceholder.tsx b/src/view/com/util/LoadingPlaceholder.tsx index 25ce460d4b..b4a5681d8e 100644 --- a/src/view/com/util/LoadingPlaceholder.tsx +++ b/src/view/com/util/LoadingPlaceholder.tsx @@ -23,7 +23,7 @@ export function LoadingPlaceholder({ style, }: { width: DimensionValue - height: DimensionValue + height: DimensionValue | undefined style?: StyleProp }) { const theme = useTheme()