dummy home screen

This commit is contained in:
Jaanu423
2025-09-16 16:21:01 +05:30
parent 66b509e58e
commit 6ed8163d25
7 changed files with 551 additions and 171 deletions
+6 -2
View File
@@ -145,7 +145,7 @@ export default function GroupScreen() {
};
const renderContent = () => {
let data ;
let data: Group[];
switch (activeTab) {
case "My Groups": data = myGroups; break;
case "Joined": data = joinedGroups; break;
@@ -168,7 +168,11 @@ export default function GroupScreen() {
renderItem={({ item }) => (
<GroupCard
item={item}
onJoin={activeTab === 'Public' ? handleJoinGroup : () => { }}
onJoin={() => {
if (activeTab === 'Public') {
handleJoinGroup
}
}}
onView={handleViewGroup}
isGrid={isGridView}
/>