Commit 0daf8f9b authored by Chunchi Che's avatar Chunchi Che

update sendBox.tsx

parent 5a76679d
Pipeline #20507 passed with stages
in 4 minutes and 59 seconds
import React, { useState } from "react";
import { Input, Button, Row, Col } from "antd";
import { SendOutlined } from "@ant-design/icons";
import { sendChat } from "../../api/ocgcore/ocgHelper";
const SendBox = () => {
const [content, setContent] = useState("");
......@@ -20,7 +21,10 @@ const SendBox = () => {
<Col>
<Button
icon={<SendOutlined />}
onClick={() => {}}
onClick={() => {
sendChat(content);
setContent("");
}}
disabled={!content}
/>
</Col>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment