From 958ed7763fc88f2b198acb531fdb96d4d6d3c7ed Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 18 Mar 2026 14:27:57 -0500 Subject: [PATCH] Add back starter packs button in ProfileMenu --- src/components/dialogs/StarterPackDialog.tsx | 13 +++++++++++-- src/view/com/profile/ProfileMenu.tsx | 20 +++++++++----------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/src/components/dialogs/StarterPackDialog.tsx b/src/components/dialogs/StarterPackDialog.tsx index 86c054328b..2a77292f42 100644 --- a/src/components/dialogs/StarterPackDialog.tsx +++ b/src/components/dialogs/StarterPackDialog.tsx @@ -19,6 +19,7 @@ import { useListMembershipRemoveMutation, } from '#/state/queries/list-memberships' import {useProfileQuery} from '#/state/queries/profile' +import {useSession} from '#/state/session' import {atoms as a, native, platform, useTheme} from '#/alf' import {AvatarStack} from '#/components/AvatarStack' import {Button, ButtonIcon, ButtonText} from '#/components/Button' @@ -260,6 +261,8 @@ function StarterPackItem({ const t = useTheme() const ax = useAnalytics() const {_} = useLingui() + const {currentAccount} = useSession() + const isSelf = subject?.did === currentAccount?.did const starterPack = starterPackWithMembership.starterPack const isInPack = !!starterPackWithMembership.listItem @@ -373,11 +376,17 @@ function StarterPackItem({ label={isInPack ? _(msg`Remove`) : _(msg`Add`)} color={isInPack ? 'secondary' : 'primary_subtle'} size="tiny" - disabled={isPending} + disabled={isPending || isSelf} onPress={handleToggleMembership}> {isPending && } - {isInPack ? Remove : Add} + {isSelf ? ( + Owner + ) : isInPack ? ( + Remove + ) : ( + Add + )} diff --git a/src/view/com/profile/ProfileMenu.tsx b/src/view/com/profile/ProfileMenu.tsx index c89b2c3bf9..51edee1903 100644 --- a/src/view/com/profile/ProfileMenu.tsx +++ b/src/view/com/profile/ProfileMenu.tsx @@ -341,17 +341,15 @@ let ProfileMenu = ({ )} )} - {!isSelf && ( - - - Add to starter packs - - - - )} + + + Add to starter packs + + +