From 5d60fcf892724cf4a4c4e3ef19eadb1dba1e680b Mon Sep 17 00:00:00 2001 From: abhishek-01k Date: Wed, 22 May 2024 14:57:51 +0530 Subject: [PATCH] fix: copying full wallet address in pending member list Copying wallet address was not copying full wallet address in the pending member list of group info in push chat uiweb --- .../lib/components/chat/ChatProfile/PendingMembers.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/uiweb/src/lib/components/chat/ChatProfile/PendingMembers.tsx b/packages/uiweb/src/lib/components/chat/ChatProfile/PendingMembers.tsx index 4c055c718..01893f33d 100644 --- a/packages/uiweb/src/lib/components/chat/ChatProfile/PendingMembers.tsx +++ b/packages/uiweb/src/lib/components/chat/ChatProfile/PendingMembers.tsx @@ -123,7 +123,7 @@ export const PendingMembers = ({ icon: item?.userInfo?.profile?.picture || null, chatId: null, web3Name: null, - recipient: shortenText(pCAIP10ToWallet(item.address?.split(':')[1]), 6, true), + recipient: pCAIP10ToWallet(item.address?.split(':')[1]), abbrRecipient: shortenText(pCAIP10ToWallet(item.address?.split(':')[1]), 6, true), desc: null, }} @@ -313,8 +313,8 @@ export const AcceptedMembers = ({ isAdmin(item) && accountStatus?.role === GROUP_ROLES.ADMIN.toLowerCase() ? [removeAdminDropdown, removeMemberDropdown] : accountStatus?.role === GROUP_ROLES.ADMIN.toLowerCase() - ? [addAdminDropdown, removeMemberDropdown] - : [] + ? [addAdminDropdown, removeMemberDropdown] + : [] } selectedMemberAddress={selectedMemberAddress} setSelectedMemberAddress={setSelectedMemberAddress} @@ -375,7 +375,7 @@ const PendingSection = styled.div` box-sizing: border-box; `; -const ArrowImage = styled(Image)` +const ArrowImage = styled(Image) ` margin-left: auto; transform: ${(props) => (props?.setPosition ? 'rotate(0)' : 'rotate(180deg)')}; `; @@ -390,7 +390,7 @@ const Badge = styled.div` font-weight: 700; `; -const ProfileSection = styled(Section)<{ theme: IChatTheme }>` +const ProfileSection = styled(Section) <{ theme: IChatTheme }>` height: fit-content; &::-webkit-scrollbar-thumb { background: transparent;