簡化ProfileCard組件的屬性,移除不必要的onToggleProfile回調,優化個人資料顯示邏輯。

This commit is contained in:
超级老白兔
2025-09-26 15:08:44 +08:00
parent 1d5d46c9ce
commit 0b398b372e

View File

@@ -123,9 +123,7 @@ const ChatWindow: React.FC<ChatWindowProps> = ({ contract }) => {
</Layout>
{/* 右侧个人资料卡片 */}
{showProfile && (
<ProfileCard contract={contract} onToggleProfile={onToggleProfile} />
)}
{showProfile && <ProfileCard contract={contract} />}
</Layout>
);
};