From 9e59a2eef2f82511a9a9a056dbdb0c62fe2f61c6 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 28 Feb 2025 14:50:44 -0800 Subject: Fix starter pack layout (#7869) --- src/screens/StarterPack/StarterPackScreen.tsx | 209 ++++++++++++-------------- 1 file changed, 99 insertions(+), 110 deletions(-) (limited to 'src/screens/StarterPack/StarterPackScreen.tsx') diff --git a/src/screens/StarterPack/StarterPackScreen.tsx b/src/screens/StarterPack/StarterPackScreen.tsx index ac61c153b..cf153db44 100644 --- a/src/screens/StarterPack/StarterPackScreen.tsx +++ b/src/screens/StarterPack/StarterPackScreen.tsx @@ -24,7 +24,6 @@ import {logEvent} from '#/lib/statsig/statsig' import {cleanError} from '#/lib/strings/errors' import {getStarterPackOgCard} from '#/lib/strings/starter-pack' import {logger} from '#/logger' -import {isWeb} from '#/platform/detection' import {updateProfileShadow} from '#/state/cache/profile-shadow' import {useModerationOpts} from '#/state/preferences/moderation-opts' import {getAllListMembers} from '#/state/queries/list-members' @@ -43,7 +42,6 @@ import {useSetActiveStarterPack} from '#/state/shell/starter-pack' import {PagerWithHeader} from '#/view/com/pager/PagerWithHeader' import {ProfileSubpageHeader} from '#/view/com/profile/ProfileSubpageHeader' import * as Toast from '#/view/com/util/Toast' -import {CenteredView} from '#/view/com/util/Views' import {bulkWriteFollows} from '#/screens/Onboarding/util' import {atoms as a, useBreakpoints, useTheme} from '#/alf' import {Button, ButtonIcon, ButtonText} from '#/components/Button' @@ -222,55 +220,53 @@ function StarterPackScreenLoaded({ }, [onOpenShareDialog, routeParams.new, shareDialogControl]) return ( - - - ( -
- )}> - {showPeopleTab - ? ({headerHeight, scrollElRef}) => ( - - ) - : null} - {showFeedsTab - ? ({headerHeight, scrollElRef}) => ( - - ) - : null} - {showPostsTab - ? ({headerHeight, scrollElRef}) => ( - - ) - : null} - - + <> + ( +
+ )}> + {showPeopleTab + ? ({headerHeight, scrollElRef}) => ( + + ) + : null} + {showFeedsTab + ? ({headerHeight, scrollElRef}) => ( + + ) + : null} + {showPostsTab + ? ({headerHeight, scrollElRef}) => ( + + ) + : null} + - + ) } @@ -707,64 +703,57 @@ function InvalidStarterPack({rkey}: {rkey: string}) { }) return ( - - - - Starter pack is invalid - - - - The starter pack that you are trying to view is invalid. You may - delete this starter pack instead. - - - - - - + + + + + Starter pack is invalid + + + + The starter pack that you are trying to view is invalid. You may + delete this starter pack instead. + + + + + + + - + ) } -- cgit 1.4.1