Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninad-S authored Oct 23, 2024
1 parent ddf8da4 commit 5d2f99b
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';

Check failure on line 1 in src/app/community/communityEvents.tsx

View workflow job for this annotation

GitHub Actions / check-formatting

src/app/community/communityEvents.tsx not formatted correctly

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 5d2f99b

Please sign in to comment.