浪費了半天時間, 索性移除了聯絡人分組的支援
This commit is contained in:
CrescentLeaf
2025-09-20 16:57:17 +08:00
parent 6a8acd4717
commit 5ce42bf651
7 changed files with 60 additions and 53 deletions

View File

@@ -3,12 +3,14 @@ import RecentsListItem from "./RecentsListItem.tsx"
interface Args extends React.HTMLAttributes<HTMLElement> {
recentsList: RecentChat[]
setRecentsList: React.Dispatch<React.SetStateAction<RecentChat[]>>
display: boolean
openChatFragment: (id: string) => void
}
export default function RecentsList({
recentsList,
setRecentsList,
display,
openChatFragment,
...props
@@ -16,7 +18,8 @@ export default function RecentsList({
return <mdui-list style={{
overflowY: 'auto',
paddingRight: '10px',
display: display ? undefined : 'none'
display: display ? undefined : 'none',
height: '100%',
}} {...props}>
{
recentsList.map((v) =>