mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2025-08-27 04:59:22 +00:00
pull in signup button too
This commit is contained in:
parent
8aed77c49b
commit
e0ad32447a
@ -48,7 +48,7 @@ const LoginDialog: React.FC<LoginDialogProps> = ({ isOpen, onClose, onLogin, onS
|
|||||||
const handleKeyLogin = () => {
|
const handleKeyLogin = () => {
|
||||||
if (!nsec.trim()) return;
|
if (!nsec.trim()) return;
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
login.nsec(nsec);
|
login.nsec(nsec);
|
||||||
onLogin();
|
onLogin();
|
||||||
@ -63,7 +63,7 @@ const LoginDialog: React.FC<LoginDialogProps> = ({ isOpen, onClose, onLogin, onS
|
|||||||
const handleBunkerLogin = () => {
|
const handleBunkerLogin = () => {
|
||||||
if (!bunkerUri.trim() || !bunkerUri.startsWith('bunker://')) return;
|
if (!bunkerUri.trim() || !bunkerUri.startsWith('bunker://')) return;
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
login.bunker(bunkerUri);
|
login.bunker(bunkerUri);
|
||||||
onLogin();
|
onLogin();
|
||||||
@ -199,17 +199,30 @@ const LoginDialog: React.FC<LoginDialogProps> = ({ isOpen, onClose, onLogin, onS
|
|||||||
</TabsContent>
|
</TabsContent>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
<div className='text-center text-sm'>
|
{onSignup && (
|
||||||
<p className='text-gray-600 dark:text-gray-400'>
|
<div className='relative mt-6'>
|
||||||
Don't have an account?{' '}
|
<div className='absolute inset-0 flex items-center' aria-hidden='true'>
|
||||||
<button
|
<div className='w-full border-t border-border' />
|
||||||
|
</div>
|
||||||
|
<div className='relative flex justify-center text-sm'>
|
||||||
|
<span className='px-2 bg-background text-muted-foreground'>
|
||||||
|
New to Nostr?
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{onSignup && (
|
||||||
|
<div className='mt-6'>
|
||||||
|
<Button
|
||||||
|
variant='outline'
|
||||||
|
className='w-full'
|
||||||
onClick={handleSignupClick}
|
onClick={handleSignupClick}
|
||||||
className='text-primary hover:underline font-medium'
|
|
||||||
>
|
>
|
||||||
Sign up
|
Create an account
|
||||||
</button>
|
</Button>
|
||||||
</p>
|
</div>
|
||||||
</div>
|
)}
|
||||||
</div>
|
</div>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user