diff --git a/src/components/Timeline/Modals/ConnectionsModal.tsx b/src/components/Timeline/Modals/ConnectionsModal.tsx index c4e0e962..61f218b6 100644 --- a/src/components/Timeline/Modals/ConnectionsModal.tsx +++ b/src/components/Timeline/Modals/ConnectionsModal.tsx @@ -6,7 +6,6 @@ import { useGetUserFollow, useGetUserFollowers } from '@/services/connection' import { useUniStore } from '@/store/store' import UserListItemSkeleton from '@/components/Connections/UserListItemSkeleton' import { FollowingItemProps } from '@/types/constants' -import { useGetUserData } from '@/services/user' type props = { isChat?: boolean @@ -15,7 +14,6 @@ type props = { userId?: string } const ConnectionsModal = ({ isChat, setIsCreateGroupModalOpen, setIsModalOpen, userId }: props) => { - console.log(userId, 'userId') const [content, setContent] = useState<'Following' | 'Followers'>('Following') const { userProfileData } = useUniStore() const userFollowingIDs = userProfileData && userProfileData?.following?.map((following) => following.userId) diff --git a/src/components/Timeline/UserListItem.tsx b/src/components/Timeline/UserListItem.tsx index e34b9b3d..fa0552dc 100644 --- a/src/components/Timeline/UserListItem.tsx +++ b/src/components/Timeline/UserListItem.tsx @@ -49,7 +49,7 @@ const UserListItem: React.FC = ({ return (
handleProfileClicked(id)} className="flex gap-4 items-center cursor-pointer"> - {firstName} + {firstName}

{firstName} {lastName} diff --git a/src/components/communityUniversity/GroupSelectors.tsx b/src/components/communityUniversity/GroupSelectors.tsx index 69b7aef2..edcf0445 100644 --- a/src/components/communityUniversity/GroupSelectors.tsx +++ b/src/components/communityUniversity/GroupSelectors.tsx @@ -31,7 +31,7 @@ const GroupSelectors = ({ >
handleGroupNavigate()} - className={`flex w-full items-center gap-3 py-2 first-of-type:border-0 relative after:content-[''] after:absolute after:left-3 after:z-30 after:top-[calc(90%+10px)] after:w-[calc(60%)] after:bg-[#6647FF] `} + className={`flex w-full items-center gap-3 py-2 px-4 first-of-type:border-0 relative after:content-[''] after:absolute after:left-3 after:z-30 after:top-[calc(90%+10px)] after:w-[calc(60%)] after:bg-[#6647FF] `} > {data?.communityGroupLogoUrl?.imageUrl ? ( dp diff --git a/src/components/molecules/Modal/ModalWrapper.tsx b/src/components/molecules/Modal/ModalWrapper.tsx index 603b88cc..d54c89b7 100644 --- a/src/components/molecules/Modal/ModalWrapper.tsx +++ b/src/components/molecules/Modal/ModalWrapper.tsx @@ -22,7 +22,7 @@ const ModalWrapper = ({ children, setModal, isShown, smallHeight = false, taking } ${smallHeight ? 'h-[99%]' : 'h-screen'} top-0 flex justify-center items-center z-50`} >
setModal(false)} className="bg-black opacity-70 w-full h-screen fixed -z-10">
-
+
-
+ {isUserJoinedSelectedCommunity && ( +
+ +
+ )}
), }, ] const handleUniversityClick = (index: React.SetStateAction) => { + setCommunityOpen(false) const indextoPush = Number(index) setCommunity(subscribedCommunities?.[indextoPush] as Community) router.push(`/community/${subscribedCommunities?.[indextoPush]._id}`) @@ -236,13 +244,32 @@ export default function NavbarUniversityItem({ setActiveMenu, toggleLeftNavbar } style={{ boxShadow: '0px 8px 40px rgba(0, 0, 0, 0.10)' }} className="flex items-center justify-center bg-white rounded-full w-[40px] h-[40px] cursor-pointer" > - communtiy image + setCommunityOpen(!communityOpen)}> + + communtiy image + + + {subscribedCommunities?.map((community, index) => { + return ( + handleUniversityClick(index)} + width={40} + height={40} + className="w-[40px] h-[40px] object-cover rounded-full" + src={community?.communityLogoUrl?.imageUrl || avatar} + alt="communtiy image" + /> + ) + })} + +
@@ -250,7 +277,7 @@ export default function NavbarUniversityItem({ setActiveMenu, toggleLeftNavbar } {subscribedCommunities?.length !== 0 ? ( - + ) : (

Add your university to join or create groups

diff --git a/src/components/molecules/PostCommentBox/index.tsx b/src/components/molecules/PostCommentBox/index.tsx index 88fe0e15..2c29625c 100644 --- a/src/components/molecules/PostCommentBox/index.tsx +++ b/src/components/molecules/PostCommentBox/index.tsx @@ -275,7 +275,6 @@ const PostCommentBox = ({ showCommentSec, postID, type, data }: Props) => { if ((isFetching && !isFetchingNextPage) || (communityCommentsIsFetching && !communityCommentsIsFetchingNextPage)) { return } - // console.log('comments', comments) return comments?.map((comment, index: number) => (
diff --git a/src/components/molecules/Tabs/index.tsx b/src/components/molecules/Tabs/index.tsx index 38de26b4..d2afbadc 100644 --- a/src/components/molecules/Tabs/index.tsx +++ b/src/components/molecules/Tabs/index.tsx @@ -21,7 +21,7 @@ const Tabs: React.FC = ({ tabs, className = '', tabAlign = 'left' }) return (
{/* Tabs List */} -
+
{tabs.map((tab, index) => (