diff --git a/src/pages/Community/Community.tsx b/src/pages/Community/Community.tsx index 005479e..730ba07 100644 --- a/src/pages/Community/Community.tsx +++ b/src/pages/Community/Community.tsx @@ -9,8 +9,6 @@ import { StaggerContainer, StaggerItem } from '@/components/AnimatedContainer/An import AnimatedContainer from '@/components/AnimatedContainer/AnimatedContainer'; import { CONFESSIONS_DATA } from '@/constants'; -type Tab = 'qa' | 'confession'; - const TRENDING_TAGS = ['hostel', 'academics', 'clubs', 'campus', 'canteen', 'sports', 'placement', 'library', 'cat exam', 'semester', 'labs', 'exams']; const AVATARS: Record = { @@ -66,11 +64,8 @@ const getRelativeTime = (dateString: string) => { export default function Community() { const PAGE_SIZE = 5; - const [activeTab, setActiveTab] = useState('qa'); - const [confessionText, setConfessionText] = useState(''); const [questionText, setQuestionText] = useState(''); const [authorName, setAuthorName] = useState(''); - const [confessionPosted, setConfessionPosted] = useState(false); const [searchQuery, setSearchQuery] = useState(''); const [likedIds, setLikedIds] = useState>(new Set()); const [expandedQuestionIds, setExpandedQuestionIds] = useState>(new Set()); @@ -170,13 +165,6 @@ export default function Community() { document.getElementById('qa-questions-list')?.scrollIntoView({ behavior: 'smooth', block: 'start' }); }; - const handleConfess = () => { - if (!confessionText.trim()) return; - setConfessionPosted(true); - setConfessionText(''); - setTimeout(() => setConfessionPosted(false), 3000); - }; - const handleLike = async (id: string) => { let isLikedNow = false; setLikedIds((prev) => { @@ -300,44 +288,7 @@ export default function Community() {
- {/* Tabs */} -
- {[ - { id: 'qa' as Tab, label: 'Freshers Q&A', icon: MessageCircle }, - { id: 'confession' as Tab, label: 'Confessions', icon: Heart }, - ].map((tab) => ( - - ))} -
- - - {/* Q&A Tab */} - {activeTab === 'qa' && ( - -
+
{/* Ask Question Box */}

Ask a Question

@@ -689,167 +640,6 @@ export default function Community() {
- - )} - - {/* Confessions Tab */} - {activeTab === 'confession' && ( - -
-
- {/* Post confession */} -
-
-
- -
-
-

Share Anonymously

-

Your identity is never revealed

-
-
- -