簡化ProfileCard組件的屬性,移除不必要的onToggleProfile回調,優化個人資料顯示邏輯。
This commit is contained in:
@@ -123,9 +123,7 @@ const ChatWindow: React.FC<ChatWindowProps> = ({ contract }) => {
|
||||
</Layout>
|
||||
|
||||
{/* 右侧个人资料卡片 */}
|
||||
{showProfile && (
|
||||
<ProfileCard contract={contract} onToggleProfile={onToggleProfile} />
|
||||
)}
|
||||
{showProfile && <ProfileCard contract={contract} />}
|
||||
</Layout>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user