From bb2dacb3a4d72bb30e781c365aaaee9d67958089 Mon Sep 17 00:00:00 2001 From: bacpactech Date: Thu, 7 Nov 2024 12:37:45 +0530 Subject: [PATCH] remove commented code --- src/app/(withLayout)/profile/[...id]/page.tsx | 23 -------- src/components/Timeline/UserListItem.tsx | 12 ----- .../molecules/NavbarUniversityItem/index.tsx | 15 +----- .../organisms/PostsContainer/index.tsx | 6 --- .../organisms/ProfileCard/index.tsx | 54 ------------------- 5 files changed, 1 insertion(+), 109 deletions(-) diff --git a/src/app/(withLayout)/profile/[...id]/page.tsx b/src/app/(withLayout)/profile/[...id]/page.tsx index d5a1548d..544273ac 100644 --- a/src/app/(withLayout)/profile/[...id]/page.tsx +++ b/src/app/(withLayout)/profile/[...id]/page.tsx @@ -9,7 +9,6 @@ import ProfileCard from '@/components/Timeline/ProfileCard' import { Skeleton } from '@/components/ui/Skeleton' import { useCheckSelfProfile } from '@/lib/utils' import { useGetUserData } from '@/services/user' -import { useUniStore } from '@/store/store' import { PostType } from '@/types/constants' import { ModalContentType } from '@/types/global' import React, { useState } from 'react' @@ -41,7 +40,6 @@ export default function Profile({ params }: { params: { id: string } }) { {isUserProfileDataLoading || !userProfileData ? ( ) : ( - // )} - {/**/} ) diff --git a/src/components/Timeline/UserListItem.tsx b/src/components/Timeline/UserListItem.tsx index c49985eb..eb1d84b0 100644 --- a/src/components/Timeline/UserListItem.tsx +++ b/src/components/Timeline/UserListItem.tsx @@ -64,18 +64,6 @@ const UserListItem: React.FC = ({ {userFollowingIDs?.includes(id) ? 'UnFollow' : 'Follow'} - {/* - - - - - {isChat ? ( -

createUserChat({ userId: id })}>Start-chat

- ) : ( -

toggleFollow(id)}>{userFollowingIDs?.includes(id) ? 'Un-Follow' : 'Follow'}

- )} -
-
*/} ) diff --git a/src/components/molecules/NavbarUniversityItem/index.tsx b/src/components/molecules/NavbarUniversityItem/index.tsx index 6d812731..57146ac5 100644 --- a/src/components/molecules/NavbarUniversityItem/index.tsx +++ b/src/components/molecules/NavbarUniversityItem/index.tsx @@ -104,11 +104,7 @@ export default function NavbarUniversityItem({ setActiveMenu }: any) { SetcurrClickedID={SetcurrClickedID} paramGroupId={id} /> - {/*{communityGroups?.groups > showGroupTill && ( -

setShowGroupTill(showGroupTill + 5)} className="text-neutral-500 text-sm underline text-center mt-2 cursor-pointer"> - Load More -

- )}*/} +