Put everything in its right place
This commit is contained in:
15
components/templates/userTop.js
Normal file
15
components/templates/userTop.js
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user