diff --git a/src/app/community/communityEvents.tsx b/src/app/community/communityEvents.tsx index 79b0234..552f42e 100644 --- a/src/app/community/communityEvents.tsx +++ b/src/app/community/communityEvents.tsx @@ -1,38 +1,38 @@ -'use server'; - -import EventCard from '@src/components/events/EventCard'; -import { api } from '@src/trpc/server'; -import Link from 'next/link'; - -const CommunityEvents = async () => { - const events = await api.userMetadata.getEvents(); - if (events.length === 0) { - return ( -
-
You haven't added any community events yet 😭
-
- You can check out new events{' '} - - here - -
-
- ); - } - return ( -
- {events.map((event) => ( -
- -
- ))} -
- ); -}; -export default CommunityEvents; +'use server'; + +import EventCard from '@src/components/events/EventCard'; +import { api } from '@src/trpc/server'; +import Link from 'next/link'; + +const CommunityEvents = async () => { + const events = await api.userMetadata.getEvents(); + if (events.length === 0) { + return ( +
+
You haven't added any community events yet 😭
+
+ You can check out new events{' '} + + here + +
+
+ ); + } + return ( +
+ {events.map((event) => ( +
+ +
+ ))} +
+ ); +}; +export default CommunityEvents;