Finish Docs #38, show publicID on HUB
This commit is contained in:
@@ -28,9 +28,12 @@ export const StatsToggle = () => {
|
||||
}, [checked, router]);
|
||||
|
||||
return (
|
||||
<header className="flex justify-between items-center p-4">
|
||||
<header className="flex justify-between items-center pb-4">
|
||||
<h1 className="text-2xl font-bold">
|
||||
Hallo, {session.status === "authenticated" ? session.data?.user.firstname : "<username>"}
|
||||
Hallo,{" "}
|
||||
{session.status === "authenticated"
|
||||
? session.data?.user.firstname + " <" + session.data?.user.publicId + ">"
|
||||
: "<username>"}
|
||||
{"!"}
|
||||
</h1>
|
||||
<div>
|
||||
@@ -49,3 +52,24 @@ export const StatsToggle = () => {
|
||||
</header>
|
||||
);
|
||||
};
|
||||
|
||||
export const StatsTitle = () => {
|
||||
const session = useSession();
|
||||
|
||||
return (
|
||||
<header className="flex justify-left items-center pb-4">
|
||||
<h1 className="text-2xl font-bold">
|
||||
Hallo,{" "}
|
||||
{session.status === "authenticated" ? (
|
||||
<>
|
||||
{session.data?.user.firstname}
|
||||
<span className="text-info text-xl">{" #" + session.data?.user.publicId}</span>
|
||||
</>
|
||||
) : (
|
||||
"<username>"
|
||||
)}
|
||||
{"!"}
|
||||
</h1>
|
||||
</header>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user