From 1b959dc6a1a1200c8f7962cca4193069c5ae6c81 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 8 Jan 2023 10:46:07 +0000 Subject: [PATCH] remove AutoSizer --- src/renderer/components/dialogs/ViewGroup.tsx | 55 +++++++++---------- 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/src/renderer/components/dialogs/ViewGroup.tsx b/src/renderer/components/dialogs/ViewGroup.tsx index e77a4ac4a8..8a952a6846 100644 --- a/src/renderer/components/dialogs/ViewGroup.tsx +++ b/src/renderer/components/dialogs/ViewGroup.tsx @@ -16,7 +16,6 @@ import { selectChat } from '../helpers/ChatMethods' import { useThemeCssVar } from '../../ThemeManager' import { ContactList2, useContactsMap } from '../contact/ContactList' import { useLogicVirtualChatList, ChatListPart } from '../chat/ChatList' -import AutoSizer from 'react-virtualized-auto-sizer' import { PseudoListItemShowQrCode, PseudoListItemAddMember, @@ -276,33 +275,33 @@ function ViewGroupInner(props: {
{tx('profile_shared_chats')} -
-
- - {({ width, height }) => ( - 'key' + chatListIds[index]} - itemHeight={CHATLISTITEM_CHAT_HEIGHT} - > - {({ index, style }) => { - const [chatId] = chatListIds[index] - return ( -
- -
- ) - }} -
- )} -
+
+
+ 'key' + chatListIds[index]} + itemHeight={CHATLISTITEM_CHAT_HEIGHT} + > + {({ index, style }) => { + const [chatId] = chatListIds[index] + return ( +
+ +
+ ) + }} +
{!isBroadcast