Fixed Login/Signup in TodoApp.

This commit is contained in:
Martin Sosic 2023-04-07 14:05:37 +02:00 committed by Martin Šošić
parent da71a3ca60
commit bac8a4f218
2 changed files with 18 additions and 14 deletions

View File

@ -1,17 +1,19 @@
import { Link } from 'react-router-dom'
import LoginForm from '@wasp/auth/forms/Login'
import { LoginForm } from '@wasp/auth/forms/Login'
const LoginPage = () => {
return (
<>
<LoginForm/>
<br/>
<span>
I don't have an account yet (<Link to="/signup">go to signup</Link>).
</span>
<div style={{maxWidth: "400px", margin: "0 auto"}}>
<LoginForm/>
<br/>
<span>
I don't have an account yet (<Link to="/signup">go to signup</Link>).
</span>
</div>
</>
)
}
export default LoginPage
export default LoginPage

View File

@ -1,17 +1,19 @@
import { Link } from 'react-router-dom'
import SignupForm from '@wasp/auth/forms/Signup'
import { SignupForm } from '@wasp/auth/forms/Signup'
const SignupPage = () => {
return (
<>
<SignupForm/>
<br/>
<span>
I already have an account (<Link to="/login">go to login</Link>).
</span>
<div style={{maxWidth: "400px", margin: "0 auto"}}>
<SignupForm/>
<br/>
<span>
I already have an account (<Link to="/login">go to login</Link>).
</span>
</div>
</>
)
}
export default SignupPage
export default SignupPage