From 339afbbce303d9def2d1792b228ea72b6a6a0fb9 Mon Sep 17 00:00:00 2001 From: Hailey Date: Sat, 22 Jun 2024 13:35:29 -0700 Subject: [PATCH] use "Remove" button in edit dialog --- .../Wizard/WizardEditListDialog.tsx | 2 ++ .../StarterPack/Wizard/WizardListCard.tsx | 29 +++++++++++++++++-- src/screens/StarterPack/Wizard/StepFeeds.tsx | 1 + .../StarterPack/Wizard/StepProfiles.tsx | 1 + src/screens/StarterPack/Wizard/index.tsx | 7 ++--- 5 files changed, 32 insertions(+), 8 deletions(-) diff --git a/src/components/StarterPack/Wizard/WizardEditListDialog.tsx b/src/components/StarterPack/Wizard/WizardEditListDialog.tsx index bf250ac354..cf755e1bcf 100644 --- a/src/components/StarterPack/Wizard/WizardEditListDialog.tsx +++ b/src/components/StarterPack/Wizard/WizardEditListDialog.tsx @@ -58,6 +58,7 @@ export function WizardEditListDialog({ state.currentStep === 'Profiles' ? ( - + {btnType === 'checkbox' ? ( + + ) : !disabled ? ( + + ) : null} ) } export function WizardProfileCard({ + btnType, state, dispatch, profile, moderationOpts, }: { + btnType: 'checkbox' | 'remove' state: WizardState dispatch: (action: WizardAction) => void profile: AppBskyActorDefs.ProfileViewBasic @@ -127,6 +146,7 @@ export function WizardProfileCard({ return ( void @@ -170,6 +192,7 @@ export function WizardFeedCard({ return ( ) : items.length === 2 ? ( - - {getName(items[initialNamesIndex])}{' '} - - and + You and - {getName(items[state.currentStep === 'Profiles' ? 0 : 1])}{' '} + {getName(items[initialNamesIndex])}{' '} are included in your starter pack