refactor(MessageEnter): 移除未使用的表情选择器状态及相关代码
This commit is contained in:
@@ -30,7 +30,6 @@ const { sendCommand } = useWebSocketStore.getState();
|
||||
const MessageEnter: React.FC<MessageEnterProps> = ({ contract }) => {
|
||||
const [inputValue, setInputValue] = useState("");
|
||||
const [showMaterialModal, setShowMaterialModal] = useState(false);
|
||||
const [showEmojiPicker, setShowEmojiPicker] = useState(false);
|
||||
|
||||
const handleSend = async () => {
|
||||
if (!inputValue.trim()) return;
|
||||
@@ -108,7 +107,6 @@ const MessageEnter: React.FC<MessageEnterProps> = ({ contract }) => {
|
||||
content: `[${emoji.name}]`, // 表情以文本形式发送
|
||||
};
|
||||
sendCommand("CmdSendMessage", params);
|
||||
setShowEmojiPicker(false);
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user