diff --git a/src/constants/index.ts b/src/constants/index.ts index eb3d9d1..5cceef1 100644 --- a/src/constants/index.ts +++ b/src/constants/index.ts @@ -861,29 +861,7 @@ export const QUESTIONS_DATA: Question[] = [ ]; // ─── Confessions ───────────────────────────────────────────────────────────── -export const CONFESSIONS_DATA: Confession[] = [ - { - id: '1', - content: 'I was so nervous on my first day that I went to the wrong department. A senior helped me out and became my best friend. RIT has such a warm community! 🧡', - createdAt: '2025-07-19T11:00:00Z', - reactions: 87, - category: 'Wholesome', - }, - { - id: '2', - content: 'The library WiFi is actually faster than my home connection. No complaints from me 😂', - createdAt: '2025-07-18T15:30:00Z', - reactions: 134, - category: 'Funny', - }, - { - id: '3', - content: 'I have a crush on someone in my class but I\'m too shy to talk. We have been in the same group project for 2 months now 😅', - createdAt: '2025-07-17T09:00:00Z', - reactions: 212, - category: 'Crush', - }, -]; +export const CONFESSIONS_DATA: Confession[] = []; // ─── Toolkit Items ─────────────────────────────────────────────────────────── export const TOOLKIT_ITEMS: ToolkitItem[] = [ diff --git a/src/pages/Community/Community.tsx b/src/pages/Community/Community.tsx index ba48977..005479e 100644 --- a/src/pages/Community/Community.tsx +++ b/src/pages/Community/Community.tsx @@ -765,52 +765,64 @@ export default function Community() { {/* Confessions Feed */} - - {CONFESSIONS_DATA.map((conf) => ( - - -
-
-
- -
-
- Anonymous -

{getRelativeTime(conf.createdAt)}

-
-
- {conf.category && ( - - {conf.category} - - )} -
-

{conf.content}

-
- -
-
-
- ))} -
+ {CONFESSIONS_DATA.length > 0 ? ( + + {CONFESSIONS_DATA.map((conf) => ( + + +
+
+
+ +
+
+ Anonymous +

{getRelativeTime(conf.createdAt)}

+
+
+ {conf.category && ( + + {conf.category} + + )} +
+

{conf.content}

+
+ +
+
+
+ ))} +
+ ) : ( +
+ +

+ No Confessions Yet +

+

+ Be the first to post a confession anonymously! +

+
+ )} {/* Sidebar */}