diff --git a/src/features/ui/components/modal-root.tsx b/src/features/ui/components/modal-root.tsx index a1fb2e53e..c3c996446 100644 --- a/src/features/ui/components/modal-root.tsx +++ b/src/features/ui/components/modal-root.tsx @@ -34,7 +34,7 @@ import { MuteModal, NostrLoginModal, NostrSignupModal, - OnboardingFlowModal, + OnboardingModal, ReactionsModal, ReblogsModal, ReplyMentionsModal, @@ -87,7 +87,7 @@ const MODAL_COMPONENTS: Record> = { 'MUTE': MuteModal, 'NOSTR_LOGIN': NostrLoginModal, 'NOSTR_SIGNUP': NostrSignupModal, - 'ONBOARDING_FLOW': OnboardingFlowModal, + 'ONBOARDING': OnboardingModal, 'REACTIONS': ReactionsModal, 'REBLOGS': ReblogsModal, 'REPLY_MENTIONS': ReplyMentionsModal, diff --git a/src/features/ui/components/modals/onboarding-flow-modal/onboarding-flow-modal.tsx b/src/features/ui/components/modals/onboarding-flow-modal/onboarding-modal.tsx similarity index 58% rename from src/features/ui/components/modals/onboarding-flow-modal/onboarding-flow-modal.tsx rename to src/features/ui/components/modals/onboarding-flow-modal/onboarding-modal.tsx index 887ad9a7d..8bf53cf3a 100644 --- a/src/features/ui/components/modals/onboarding-flow-modal/onboarding-flow-modal.tsx +++ b/src/features/ui/components/modals/onboarding-flow-modal/onboarding-modal.tsx @@ -12,15 +12,15 @@ import AvatarSelectionModal from './steps/avatar-step.tsx'; import BioStep from './steps/bio-step.tsx'; import CompletedModal from './steps/completed-step.tsx'; import CoverPhotoSelectionModal from './steps/cover-photo-selection-step.tsx'; -import DisplayUserNameStep from './steps/display-identity-step.tsx'; import DisplayNameStep from './steps/display-name-step.tsx'; import SuggestedAccountsModal from './steps/suggested-accounts-step.tsx'; +import UsernameStep from './steps/username-step.tsx'; -interface IOnboardingFlowModal { +interface IOnboardingModal { onClose(): void; } -const OnboardingFlowModal: React.FC = ({ onClose }) => { +const OnboardingModal: React.FC = ({ onClose }) => { const dispatch = useAppDispatch(); const [currentStep, setCurrentStep] = useState(0); @@ -49,7 +49,7 @@ const OnboardingFlowModal: React.FC = ({ onClose }) => { const steps = [ , , - , + , , , , @@ -78,44 +78,41 @@ const OnboardingFlowModal: React.FC = ({ onClose }) => { return ( - - - - - {steps.map((step, i) => ( -
-
- {step} -
-
- ))} -
-
-
- - {steps.map((_, i) => ( -
+ ))} +
+ + + {steps.map((_, i) => ( +