login form for mobile
This commit is contained in:
parent
d5218e1068
commit
1eb4e0eaa1
@ -24,14 +24,14 @@ export const AuthModal: React.FC<Props> = ({ open, onClose}) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog open={open} onOpenChange={handleClose}>
|
<Dialog open={open} onOpenChange={handleClose}>
|
||||||
<DialogContent className="w-[450px] bg-white p-10">
|
<DialogContent className="w-[90%] sm:w-[450px] bg-white p-4 sm:p-10 max-h-[90vh] overflow-y-auto">
|
||||||
|
|
||||||
{
|
{
|
||||||
type === 'login' ? <LoginForm onClose={handleClose} /> : <RegisterForm onClose={handleClose} />
|
type === 'login' ? <LoginForm onClose={handleClose} /> : <RegisterForm onClose={handleClose} />
|
||||||
}
|
}
|
||||||
|
|
||||||
<hr />
|
<hr className="my-4" />
|
||||||
<div className="flex gap-2">
|
<div className="flex flex-col sm:flex-row gap-2">
|
||||||
{/* <Button
|
{/* <Button
|
||||||
variant='secondary'
|
variant='secondary'
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
@ -63,11 +63,10 @@ export const AuthModal: React.FC<Props> = ({ open, onClose}) => {
|
|||||||
</Button> */}
|
</Button> */}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<Button variant='outline' onClick={onSwitchType} type='button' className="h-12">
|
<Button variant='outline' onClick={onSwitchType} type='button' className="h-12 w-full mt-2">
|
||||||
{type === 'login' ? 'Sign Up' : 'Login'}
|
{type === 'login' ? 'Sign Up' : 'Login'}
|
||||||
</Button>
|
</Button>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
|
|
||||||
</Dialog>
|
</Dialog>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user