manage group
This commit is contained in:
@@ -191,7 +191,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;
|
||||
@@ -214,7 +214,12 @@ export default function GroupScreen() {
|
||||
renderItem={({ item }) => (
|
||||
<GroupCard
|
||||
item={item}
|
||||
onJoin={activeTab === 'Public' ? handleJoinGroup : () => { }}
|
||||
onJoin={() => {
|
||||
console.log('mmmm')
|
||||
if (activeTab === 'Public') {
|
||||
handleJoinGroup(item.id, 'currentUserId');
|
||||
}
|
||||
}}
|
||||
onView={handleViewGroup}
|
||||
isGrid={isGridView}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user