diff --git a/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/index.tsx b/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/index.tsx index 11f817f4..9019a963 100644 --- a/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/index.tsx +++ b/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/index.tsx @@ -1,4 +1,4 @@ -import React from "react"; +import React, { useState } from "react"; import { Layout, Button, Avatar, Space, Dropdown, Menu, Tooltip } from "antd"; import { PhoneOutlined, @@ -6,6 +6,7 @@ import { MoreOutlined, UserOutlined, TeamOutlined, + InfoCircleOutlined, } from "@ant-design/icons"; import { ContractData, weChatGroup } from "@/pages/pc/ckbox/data"; import styles from "./ChatWindow.module.scss"; @@ -18,15 +19,13 @@ const { Header, Content } = Layout; interface ChatWindowProps { contract: ContractData | weChatGroup; - showProfile?: boolean; - onToggleProfile?: () => void; } -const ChatWindow: React.FC = ({ - contract, - showProfile = true, - onToggleProfile, -}) => { +const ChatWindow: React.FC = ({ contract }) => { + const [showProfile, setShowProfile] = useState(true); + const onToggleProfile = () => { + setShowProfile(!showProfile); + }; const chatMenu = ( }> @@ -76,6 +75,7 @@ const ChatWindow: React.FC = ({ className={styles.headerButton} /> + - - setShowProfile(!showProfile)} - /> + */} + ) : (