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

@@ -1,6 +1,6 @@
import { getServerSession } from "../../api/auth/[...nextauth]/auth";
import { prisma } from "@repo/db";
import { EventCard } from "../events/_components/item";
import { EventCard } from "../events/_components/EventCard";
import { RocketIcon } from "lucide-react";
import { eventCompleted } from "@repo/shared-components";

View File

@@ -6,7 +6,7 @@ import { useSession } from "next-auth/react";
import { useRef, useEffect, useState } from "react";
import { useQuery } from "@tanstack/react-query";
import { getEvents } from "../../../helper/events";
import { EventCard } from "(app)/events/_components/item";
import { EventCard } from "(app)/events/_components/EventCard";
const PathsOptions = ({
selected,

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">