Commit 01ffd620 by chenway

Update ChatTrans.js

parent 4b8c3bbe
Pipeline #160485 passed with stages
in 1 minute 38 seconds
...@@ -10,8 +10,8 @@ import { ...@@ -10,8 +10,8 @@ import {
import io from "socket.io-client"; import io from "socket.io-client";
import "../App.css"; import "../App.css";
const url = 'https://staging.strk-ai-support.ngrok.app/' // const url = 'https://staging.strk-ai-support.ngrok.app/'
// const url = "http://localhost:8000"; const url = "http://localhost:8000";
const socket = io(url, { const socket = io(url, {
extraHeaders: { extraHeaders: {
...@@ -21,7 +21,7 @@ const socket = io(url, { ...@@ -21,7 +21,7 @@ const socket = io(url, {
function ChatTrans() { function ChatTrans() {
const [languageSupport, setLanguageSupport] = useState("English"); const [languageSupport, setLanguageSupport] = useState("English");
const [languageUser, setLanguageUser] = useState("Simple Chinese"); const [languageUser, setLanguageUser] = useState("Simplified Chinese");
const [userMessage, setUserMessage] = useState(""); const [userMessage, setUserMessage] = useState("");
const [supportMessage, setSupportMessage] = useState(""); const [supportMessage, setSupportMessage] = useState("");
const [supportName, setSupportName] = useState(""); const [supportName, setSupportName] = useState("");
...@@ -158,7 +158,7 @@ function ChatTrans() { ...@@ -158,7 +158,7 @@ function ChatTrans() {
> >
<option value="Simplified Chinese">Simplified Chinese</option> <option value="Simplified Chinese">Simplified Chinese</option>
<option value="Traditional Chinese">Traditional Chinese</option> <option value="Traditional Chinese">Traditional Chinese</option>
<option value="Italiano">Italiano</option> <option value="Italian">Italian</option>
<option value="German">German</option> <option value="German">German</option>
<option value="Japanese">Japanese</option> <option value="Japanese">Japanese</option>
<option value="French">French</option> <option value="French">French</option>
......
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