NostrSignin: update steps
This commit is contained in:
parent
77f766ff64
commit
a8e786a578
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ interface INostrSigninModal {
|
|||
}
|
||||
|
||||
const NostrSigninModal: React.FC<INostrSigninModal> = ({ onClose }) => {
|
||||
const [step, setStep] = useState<Step>(window.nostr ? 'extension' : 'key-add');
|
||||
const [step, setStep] = useState<Step>(window.nostr ? 'extension' : 'key');
|
||||
|
||||
const handleClose = () => onClose('NOSTR_SIGNIN');
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ const ExtensionStep: React.FC<IExtensionStep> = ({ setStep, onClose }) => {
|
|||
const dispatch = useAppDispatch();
|
||||
|
||||
const onClick = () => dispatch(nostrExtensionLogIn());
|
||||
const onClickAlt = () => setStep('key-add');
|
||||
const onClickAlt = () => setStep('key');
|
||||
|
||||
return (
|
||||
<Modal title={<FormattedMessage id='nostr_signin.siwe.title' defaultMessage='Sign in' />} onClose={onClose}>
|
||||
|
|
Loading…
Reference in a new issue