Skip to content

Commit 76ccff3

Browse files
committed
Adds EventExtract component to EventCard for multi-region display
Introduces the EventExtract component within the EventCard to handle scenarios where events are associated with multiple region services. This enhances the UI by conditionally rendering the EventExtract when more than one region service is present, improving user experience and clarity in event details.
1 parent 6e0ee84 commit 76ccff3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Components/Event/EventCard.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Indicator } from "../Home/Indicator";
66
import { EventStatus, EventType } from "./Enums";
77
import { EventAffected } from "./EventAffected";
88
import { EventEditor } from "./EventEditor";
9+
import { EventExtract } from "./EventExtract";
910

1011
/**
1112
* Represents an EventCard component that displays detailed information about a specific event.
@@ -37,7 +38,13 @@ export function EventCard({ Event }: { Event: Models.IEvent }) {
3738
</div>
3839

3940
<Authorized>
40-
<EventEditor Event={Event} />
41+
<div className="flex gap-x-3">
42+
{
43+
Event.RegionServices.size > 1 &&
44+
<EventExtract Event={Event} />
45+
}
46+
<EventEditor Event={Event} />
47+
</div>
4148
</Authorized>
4249
</div>
4350

0 commit comments

Comments
 (0)