mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
fix admin in header
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { useSession, signOut } from 'next-auth/react'
|
||||
import Link from 'next/link'
|
||||
|
||||
export default function User() {
|
||||
const { data, status } = useSession()
|
||||
@@ -9,6 +10,12 @@ export default function User() {
|
||||
|
||||
return (
|
||||
<>
|
||||
<Link
|
||||
href="/admin"
|
||||
className="text-base font-medium text-gray-500 hover:text-gray-900"
|
||||
>
|
||||
Admin
|
||||
</Link>
|
||||
<div className="font-extrabold bg-red-400 px-2 py-1 mr-3 rounded-sm">
|
||||
{data.user.email}
|
||||
</div>
|
||||
@@ -17,4 +24,4 @@ export default function User() {
|
||||
</button>
|
||||
</>
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user