Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TyHil committed Oct 29, 2024
1 parent a000e64 commit 4755fbc
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions src/app/community/communityEvents.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<div className="font-bold text-slate-500">
<div>You haven&apos;t added any community events yet 😭</div>
<div>
You can check out new events{' '}
<Link
href={'/events'}
className="text-lg text-blue-primary transition-colors hover:text-blue-700"
>
here
</Link>
</div>
</div>
);
}
return (
<div
className="group flex w-full flex-col space-y-7.5 pt-10"
data-view={'list'}
>
{events.map((event) => (
<div className="w-full" key={event.id}>
<EventCard event={event} />
</div>
))}
</div>
);
};
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 (
<div className="font-bold text-slate-500">
<div>You haven&apos;t added any community events yet 😭</div>
<div>
You can check out new events{' '}
<Link
href={'/events'}
className="text-lg text-blue-primary transition-colors hover:text-blue-700"
>
here
</Link>
</div>
</div>
);
}
return (
<div
className="group flex w-full flex-col space-y-7.5 pt-10"
data-view={'list'}
>
{events.map((event) => (
<div className="w-full" key={event.id}>
<EventCard event={event} />
</div>
))}
</div>
);
};
export default CommunityEvents;

0 comments on commit 4755fbc

Please sign in to comment.