redirection and merge resolve (fix #113)

This commit will add
- redirections to behaviour page

- resolving a merge conflict
This commit is contained in:
cami 2021-07-09 01:01:17 +02:00
parent ab95b0dfd5
commit 15b2697622
4 changed files with 22 additions and 3 deletions

View file

@ -4,6 +4,7 @@ import "../../App.css";
import Footer from "../../Footer";
import InputField from "../InputField";
import SubmitField from "../SubmitField";
import { Redirect } from "react-router";
import { login, useAuth, logout } from "../../auth/AuthProvider";
import Secret from "./Secret";
import ErrorMessage from "../ErrorMessage";
@ -71,8 +72,7 @@ export default function Login() {
</form>
) : (
<>
<Secret />
<button onClick={() => logout()}>Logout</button>
<Redirect to="/behavior" />
</>
)}
</div>