NostrSignin: update steps

This commit is contained in:
Alex Gleason 2024-03-16 15:10:34 -05:00
parent 77f766ff64
commit a8e786a578
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 2 additions and 2 deletions

View file

@ -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');

View file

@ -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}>