i think i fixed a bug...

This commit is contained in:
Chop
2022-02-23 19:20:49 +01:00
parent e4478d7841
commit 95dfe2d202
14 changed files with 338 additions and 149 deletions

15
templates/userTop.js Normal file
View File

@@ -0,0 +1,15 @@
import { Pane, Button } from "evergreen-ui";
import { signOut } from "next-auth/react";
export default function UserTop({session}) {
return (
<Pane display="flex">
<h3 className="px-3 py-2 place-self-end">
Zalogowano jako {session.user.email}
</h3>
<Button onClick={() => signOut()} className="place-self-end">
Wyloguj
</Button>
</Pane>
);
}