Finalized Event modal

This commit is contained in:
PxlLoewe
2025-07-02 22:32:30 -07:00
parent 363aad803d
commit fc8d81d2d1
9 changed files with 172 additions and 153 deletions

View File

@@ -9,7 +9,7 @@ export const StatsToggle = () => {
const session = useSession();
const router = useRouter();
const searchParams = useSearchParams();
const user = session.data?.user;
useEffect(() => {
const statsPage = searchParams.get("stats") || "pilot";
if (statsPage === "dispo") {
@@ -30,11 +30,7 @@ export const StatsToggle = () => {
return (
<header className="flex justify-between items-center pb-4">
<h1 className="text-2xl font-bold">
Hallo,{" "}
{session.status === "authenticated"
? session.data?.user.firstname + " <" + session.data?.user.publicId + ">"
: "<username>"}
{"!"}
Hallo, {user?.firstname} <span className="text-gray-500">{" #" + user?.publicId}</span>!
</h1>
<div>
<div className="tooltip tooltip-left" data-tip="Disponent / Pilot">