diff --git a/src/features/ui/components/modals/nostr-signin-modal/nostr-signin-modal.tsx b/src/features/ui/components/modals/nostr-signin-modal/nostr-signin-modal.tsx index f12d9230a..ce4ffa76e 100644 --- a/src/features/ui/components/modals/nostr-signin-modal/nostr-signin-modal.tsx +++ b/src/features/ui/components/modals/nostr-signin-modal/nostr-signin-modal.tsx @@ -3,8 +3,11 @@ import { FormattedMessage } from 'react-intl'; import { Modal, Stack } from 'soapbox/components/ui'; +import AccountStep from './steps/account-step'; import ExtensionStep from './steps/extension-step'; import IdentityStep from './steps/identity-step'; +import KeyStep from './steps/key-step'; +import RegisterStep from './steps/register-step'; interface INostrSigninModal { onClose: (type?: string) => void; @@ -13,6 +16,8 @@ interface INostrSigninModal { const NostrSigninModal: React.FC = ({ onClose }) => { const [step, setStep] = useState(0); + const [username, setUsername] = useState(''); + const handleClose = () => { onClose('NOSTR_SIGNIN'); }; @@ -22,7 +27,13 @@ const NostrSigninModal: React.FC = ({ onClose }) => { case 0: return ; case 1: - return ; + return ; + case 2: + return ; + case 3: + return ; + case 4: + return ; } }; @@ -32,6 +43,8 @@ const NostrSigninModal: React.FC = ({ onClose }) => { return ; case 1: return ; + case 2: + return ; default: return null; } diff --git a/src/features/ui/components/modals/nostr-signin-modal/steps/account-step.tsx b/src/features/ui/components/modals/nostr-signin-modal/steps/account-step.tsx new file mode 100644 index 000000000..5bf641eba --- /dev/null +++ b/src/features/ui/components/modals/nostr-signin-modal/steps/account-step.tsx @@ -0,0 +1,16 @@ +import React from 'react'; + +import Stack from 'soapbox/components/ui/stack/stack'; + +interface IAccountStep { +} + +const AccountStep: React.FC = () => { + return ( + + account step + + ); +}; + +export default AccountStep; diff --git a/src/features/ui/components/modals/nostr-signin-modal/steps/identity-step.tsx b/src/features/ui/components/modals/nostr-signin-modal/steps/identity-step.tsx index db82a0cc9..be4fdd04b 100644 --- a/src/features/ui/components/modals/nostr-signin-modal/steps/identity-step.tsx +++ b/src/features/ui/components/modals/nostr-signin-modal/steps/identity-step.tsx @@ -9,18 +9,22 @@ import Stack from 'soapbox/components/ui/stack/stack'; import NostrExtensionIndicator from '../nostr-extension-indicator'; interface IIdentityStep { - setStep: (step: number) => void; + username: string; + setUsername(username: string): void; + setStep(step: number): void; } -const IdentityStep: React.FC = ({ setStep }) => { +const IdentityStep: React.FC = ({ username, setUsername, setStep }) => { return ( - + setStep(0)} /> setUsername(e.target.value)} /> diff --git a/src/features/ui/components/modals/nostr-signin-modal/steps/key-step.tsx b/src/features/ui/components/modals/nostr-signin-modal/steps/key-step.tsx new file mode 100644 index 000000000..101db28b5 --- /dev/null +++ b/src/features/ui/components/modals/nostr-signin-modal/steps/key-step.tsx @@ -0,0 +1,16 @@ +import React from 'react'; + +import Stack from 'soapbox/components/ui/stack/stack'; + +interface IKeyStep { +} + +const KeyStep: React.FC = () => { + return ( + + key step + + ); +}; + +export default KeyStep; diff --git a/src/features/ui/components/modals/nostr-signin-modal/steps/register-step.tsx b/src/features/ui/components/modals/nostr-signin-modal/steps/register-step.tsx new file mode 100644 index 000000000..af6f7020d --- /dev/null +++ b/src/features/ui/components/modals/nostr-signin-modal/steps/register-step.tsx @@ -0,0 +1,16 @@ +import React from 'react'; + +import Stack from 'soapbox/components/ui/stack/stack'; + +interface IRegisterStep { +} + +const RegisterStep: React.FC = () => { + return ( + + register step + + ); +}; + +export default RegisterStep;