NostrSignin: update steps
This commit is contained in:
parent
77f766ff64
commit
a8e786a578
|
@ -12,7 +12,7 @@ interface INostrSigninModal {
|
||||||
}
|
}
|
||||||
|
|
||||||
const NostrSigninModal: React.FC<INostrSigninModal> = ({ onClose }) => {
|
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');
|
const handleClose = () => onClose('NOSTR_SIGNIN');
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ const ExtensionStep: React.FC<IExtensionStep> = ({ setStep, onClose }) => {
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
|
|
||||||
const onClick = () => dispatch(nostrExtensionLogIn());
|
const onClick = () => dispatch(nostrExtensionLogIn());
|
||||||
const onClickAlt = () => setStep('key-add');
|
const onClickAlt = () => setStep('key');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal title={<FormattedMessage id='nostr_signin.siwe.title' defaultMessage='Sign in' />} onClose={onClose}>
|
<Modal title={<FormattedMessage id='nostr_signin.siwe.title' defaultMessage='Sign in' />} onClose={onClose}>
|
||||||
|
|
Loading…
Reference in New Issue