diff --git a/src/components/CommunityPortal/CPDashboard.jsx b/src/components/CommunityPortal/CPDashboard.jsx index 14a633f464..a4a21aab1f 100644 --- a/src/components/CommunityPortal/CPDashboard.jsx +++ b/src/components/CommunityPortal/CPDashboard.jsx @@ -21,6 +21,7 @@ import DatePicker from 'react-datepicker'; import 'react-datepicker/dist/react-datepicker.css'; import { toast } from 'react-toastify'; import axios from 'axios'; +import { Link } from 'react-router-dom'; import { el } from 'date-fns/locale'; import { fuzzySearch } from '../../utils/fuzzySearch'; @@ -316,40 +317,48 @@ export function CPDashboard() { if (displayedEvents.length > 0) { eventsContent = displayedEvents.map(event => ( - -
- -
- -
{event.title}
-
- -
-
{formatDate(event.date)}
- {event.startTime && ( -
{formatTime(event.date, event.startTime)}
- )} -
+ + +
+
-

- {getDisplayLocation(event.location)} -

-

- {event.organizerLogo && !failedLogos.has(event._id) ? ( - {normalizeOrganizer(event.organizer) handleLogoError(event._id)} - loading="lazy" - /> - ) : ( -

- -
+ +
{event.title}
+
+ +
+
{formatDate(event.date)}
+ {event.startTime && ( +
+ {formatTime(event.date, event.startTime)} +
+ )} +
+
+

+ {getDisplayLocation(event.location)} +

+

+ {event.organizerLogo && !failedLogos.has(event._id) ? ( + {normalizeOrganizer(event.organizer) handleLogoError(event._id)} + loading="lazy" + /> + ) : ( +

+
+ + )); } else { diff --git a/src/components/CommunityPortal/CPDashboard.module.css b/src/components/CommunityPortal/CPDashboard.module.css index adea778861..194feb9947 100644 --- a/src/components/CommunityPortal/CPDashboard.module.css +++ b/src/components/CommunityPortal/CPDashboard.module.css @@ -382,6 +382,7 @@ flex-direction: column; border: none; background: #ffffff; + cursor: pointer; } .eventCard:hover {