Pfadauswahl hinzugefügt
This commit is contained in:
@@ -5,7 +5,7 @@ import ModalBtn from "./modalBtn";
|
||||
import MDEditor from "@uiw/react-md-editor";
|
||||
import { Badge } from "../../../_components/Badge/Badge";
|
||||
|
||||
export const KursItem = ({
|
||||
export const EventCard = ({
|
||||
user,
|
||||
event,
|
||||
selectedAppointments,
|
||||
@@ -13,8 +13,8 @@ export const KursItem = ({
|
||||
}: {
|
||||
user: User;
|
||||
event: Event & {
|
||||
appointments: EventAppointment[];
|
||||
participants: Participant[];
|
||||
Appointments: EventAppointment[];
|
||||
Participants: Participant[];
|
||||
};
|
||||
selectedAppointments: EventAppointment[];
|
||||
appointments: EventAppointment[];
|
||||
@@ -28,8 +28,8 @@ export const KursItem = ({
|
||||
{event.type === "COURSE" && (
|
||||
<span className="badge badge-info badge-outline">Zusatzqualifikation</span>
|
||||
)}
|
||||
{event.type === "OBLIGATED_COURSE" && (
|
||||
<span className="badge badge-secondary badge-outline">Verpflichtend</span>
|
||||
{event.type === "EVENT" && (
|
||||
<span className="badge badge-secondary badge-outline">Event</span>
|
||||
)}
|
||||
</div>
|
||||
<div className="grid grid-cols-6 gap-4">
|
||||
@@ -75,7 +75,7 @@ export const KursItem = ({
|
||||
event={event}
|
||||
title={event.name}
|
||||
dates={appointments}
|
||||
participant={event.participants[0]}
|
||||
participant={event.Participants[0]}
|
||||
modalId={`${event.name}_modal.${event.id}`}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user