|
|
@ -24,6 +24,7 @@ import { Problem } from '@/components/Problem';
|
|
|
|
import { closeModal, openModal } from '@/components/Modal';
|
|
|
|
import { closeModal, openModal } from '@/components/Modal';
|
|
|
|
import { SetFriendNickname } from '@/components/modals/SetFriendNickname';
|
|
|
|
import { SetFriendNickname } from '@/components/modals/SetFriendNickname';
|
|
|
|
import { Icon } from 'tailchat-design';
|
|
|
|
import { Icon } from 'tailchat-design';
|
|
|
|
|
|
|
|
import { Virtuoso } from 'react-virtuoso';
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 好友列表
|
|
|
|
* 好友列表
|
|
|
@ -95,7 +96,7 @@ export const FriendList: React.FC<{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className="py-2.5 px-5">
|
|
|
|
<div className="py-2.5 px-5 h-full flex flex-col">
|
|
|
|
<div>{t('好友列表')}</div>
|
|
|
|
<div>{t('好友列表')}</div>
|
|
|
|
|
|
|
|
|
|
|
|
<Input
|
|
|
|
<Input
|
|
|
@ -107,8 +108,11 @@ export const FriendList: React.FC<{
|
|
|
|
onChange={(e) => setSearchText(e.target.value)}
|
|
|
|
onChange={(e) => setSearchText(e.target.value)}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div className="flex-1">
|
|
|
|
{searchResult.map((item) => (
|
|
|
|
<Virtuoso
|
|
|
|
|
|
|
|
className="h-full"
|
|
|
|
|
|
|
|
data={searchResult}
|
|
|
|
|
|
|
|
itemContent={(index, item) => (
|
|
|
|
<UserListItem
|
|
|
|
<UserListItem
|
|
|
|
key={item._id}
|
|
|
|
key={item._id}
|
|
|
|
userId={item._id}
|
|
|
|
userId={item._id}
|
|
|
@ -150,7 +154,8 @@ export const FriendList: React.FC<{
|
|
|
|
</div>,
|
|
|
|
</div>,
|
|
|
|
]}
|
|
|
|
]}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
))}
|
|
|
|
)}
|
|
|
|
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|