Skip to content

Commit 27e461e

Browse files
committed
Fixed : undefined behavior
1 parent 6949724 commit 27e461e

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

src/pages/resources/index.tsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import PageHead from '@/components/layout/PageHead';
66
import { getResourceData } from '@/lib/supabase/actions/resources.actions';
77
import { toast } from '@/hooks/use-toast';
88
import { Loader } from '@/components/layout/Loader';
9+
import PageSection from '@/components/layout/PageSection';
910

1011

1112
const ResourcePage = () => {
@@ -46,11 +47,16 @@ const ResourcePage = () => {
4647
title="Robotics Society | Punjab Engineering College"
4748
description="PEC Robotics Society at Punjab Engineering College is dedicated to innovation in robotics and automation. Explore our projects and join our team."
4849
/>
49-
<div className="my-10 px-10 py-10">
50-
{data && data.map((repo) => (
51-
<ResourceCard repo={repo} key={repo.name} />
52-
))}
53-
</div>
50+
<section className="py-24" id="events">
51+
<PageSection
52+
title="Upcoming Events"
53+
subtitle="Join us at our upcoming events and be part of our community."
54+
>
55+
{data.length > 0 && data.map((repo) => (
56+
<ResourceCard repo={repo} key={repo.name} />
57+
))}
58+
</PageSection>
59+
</section>
5460
</Loader>
5561
</PageLayout>
5662
)

0 commit comments

Comments
 (0)