remove appointment from events
This commit is contained in:
@@ -20,18 +20,18 @@ const PathsOptions = ({
|
||||
<div className="flex gap-6">
|
||||
{/* Disponent Card */}
|
||||
<div
|
||||
className={`cursor-pointer border rounded-lg p-6 w-80 transition-colors ${
|
||||
selected === "disponent" ? "border-info ring-2 ring-info" : "border-base-300"
|
||||
className={`w-80 cursor-pointer rounded-lg border p-6 transition-colors ${
|
||||
selected === "disponent" ? "border-info ring-info ring-2" : "border-base-300"
|
||||
}`}
|
||||
onClick={() => setSelected("disponent")}
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
aria-pressed={selected === "disponent"}
|
||||
>
|
||||
<h1 className="font-semibold text-lg mb-2 flex gap-2 justify-center items-center">
|
||||
<h1 className="mb-2 flex items-center justify-center gap-2 text-lg font-semibold">
|
||||
Disponent <Workflow />
|
||||
</h1>
|
||||
<div className="text-sm text-base-content/70">
|
||||
<div className="text-base-content/70 text-sm">
|
||||
Denkt sich realistische Einsatzszenarien aus, koordiniert deren Ablauf und ist die
|
||||
zentrale Schnittstelle zwischen Piloten und bodengebundenen Rettungsmitteln. Er trägt
|
||||
die Verantwortung für einen reibungslosen Ablauf und der erfolgreichen Durchführung der
|
||||
@@ -43,18 +43,18 @@ const PathsOptions = ({
|
||||
</div>
|
||||
{/* Pilot Card */}
|
||||
<div
|
||||
className={`cursor-pointer border rounded-lg p-6 w-80 transition-colors ${
|
||||
selected === "pilot" ? "border-info ring-2 ring-info" : "border-base-300"
|
||||
className={`w-80 cursor-pointer rounded-lg border p-6 transition-colors ${
|
||||
selected === "pilot" ? "border-info ring-info ring-2" : "border-base-300"
|
||||
}`}
|
||||
onClick={() => setSelected("pilot")}
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
aria-pressed={selected === "pilot"}
|
||||
>
|
||||
<h1 className="font-semibold text-lg mb-2 flex gap-2 justify-center items-center">
|
||||
<h1 className="mb-2 flex items-center justify-center gap-2 text-lg font-semibold">
|
||||
Pilot <Plane />
|
||||
</h1>
|
||||
<div className="text-sm text-base-content/70">
|
||||
<div className="text-base-content/70 text-sm">
|
||||
Fliegt die vom Disponenten erstellten Einsätze und transportiert die Med-Crew sicher zum
|
||||
Einsatzort. Er übernimmt die navigatorische Vorbereitung, achtet auf Wetterentwicklungen
|
||||
und sorgt für die Sicherheit seiner Crew im Flug.
|
||||
@@ -76,17 +76,7 @@ const EventSelect = ({ pathSelected }: { pathSelected: "disponent" | "pilot" })
|
||||
const user = useSession().data?.user;
|
||||
if (!user) return null;
|
||||
return events?.map((event) => {
|
||||
return (
|
||||
<EventCard
|
||||
appointments={event.Appointments}
|
||||
selectedAppointments={event.Appointments.filter((a) =>
|
||||
a.Participants.find((p) => p.userId == user.id),
|
||||
)}
|
||||
user={user}
|
||||
event={event}
|
||||
key={event.id}
|
||||
/>
|
||||
);
|
||||
return <EventCard user={user} event={event} key={event.id} />;
|
||||
});
|
||||
};
|
||||
|
||||
@@ -107,14 +97,14 @@ export const FirstPath = () => {
|
||||
return (
|
||||
<dialog ref={modalRef} className="modal">
|
||||
<div className="modal-box w-11/12 max-w-5xl">
|
||||
<h3 className="flex items-center gap-2 text-lg font-bold mb-10">
|
||||
<h3 className="mb-10 flex items-center gap-2 text-lg font-bold">
|
||||
{session?.user.migratedFromV1
|
||||
? "Hallo, hier hat sich einiges geändert!"
|
||||
: "Wähle deinen Einstieg!"}
|
||||
</h3>
|
||||
<h2 className="text-2xl font-bold mb-4 text-center">Willkommen bei Virtual Air Rescue!</h2>
|
||||
<h2 className="mb-4 text-center text-2xl font-bold">Willkommen bei Virtual Air Rescue!</h2>
|
||||
{session?.user.migratedFromV1 ? (
|
||||
<p className="mb-8 text-base text-base-content/80 text-center">
|
||||
<p className="text-base-content/80 mb-8 text-center text-base">
|
||||
Dein Account wurde erfolgreich auf das neue System migriert. Herzlich Willkommen im
|
||||
neuen HUB! Um die Erfahrung für alle Nutzer zu steigern haben wir uns dazu entschlossen,
|
||||
dass alle Nutzer einen Test absolvieren müssen:{" "}
|
||||
@@ -129,12 +119,12 @@ export const FirstPath = () => {
|
||||
ausprobieren, wenn du möchtest.
|
||||
</p>
|
||||
)}
|
||||
<div className="flex flex-col items-center justify-center m-20">
|
||||
<div className="m-20 flex flex-col items-center justify-center">
|
||||
{page === "path" && <PathsOptions selected={selected} setSelected={setSelected} />}
|
||||
{page === "event-select" && (
|
||||
<div className="flex flex-col gap-3 min-w-[800px]">
|
||||
<div className="flex min-w-[800px] flex-col gap-3">
|
||||
<div>
|
||||
<p className="text-left text-gray-400 text-sm">Wähle dein Einführungs-Event aus:</p>
|
||||
<p className="text-left text-sm text-gray-400">Wähle dein Einführungs-Event aus:</p>
|
||||
</div>
|
||||
<EventSelect pathSelected={selected!} />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user