Prechádzať zdrojové kódy

:fire: SuggestionFocus

visuddhinanda 2 rokov pred
rodič
commit
a5112bf51c

+ 13 - 22
dashboard/src/components/template/SentEdit/SentCell.tsx

@@ -24,7 +24,6 @@ import { delete_ } from "../../../request";
 
 import "./style.css";
 import StudioName from "../../auth/StudioName";
-import SuggestionFocus from "./SuggestionFocus";
 
 interface IWidget {
   initValue?: ISentence;
@@ -68,7 +67,7 @@ const SentCellWidget = ({
     ) {
       setBgColor("#1890ff33");
     } else {
-      setBgColor("unset");
+      setBgColor(undefined);
     }
   }, [discussionMessage, initValue?.id]);
 
@@ -308,26 +307,18 @@ const SentCellWidget = ({
                   oldContent={diffText}
                 />
               ) : (
-                <SuggestionFocus
-                  book={sentData.book}
-                  para={sentData.para}
-                  start={sentData.wordStart}
-                  end={sentData.wordEnd}
-                  channelId={sentData.channel.id}
-                >
-                  <MdView
-                    className="sentence"
-                    style={{
-                      width: "100%",
-                      marginBottom: 0,
-                    }}
-                    placeholder={intl.formatMessage({
-                      id: "labels.input",
-                    })}
-                    html={sentData.html ? sentData.html : sentData.content}
-                    wordWidget={wordWidget}
-                  />
-                </SuggestionFocus>
+                <MdView
+                  className="sentence"
+                  style={{
+                    width: "100%",
+                    marginBottom: 0,
+                  }}
+                  placeholder={intl.formatMessage({
+                    id: "labels.input",
+                  })}
+                  html={sentData.html ? sentData.html : sentData.content}
+                  wordWidget={wordWidget}
+                />
               )}
               <div
                 style={{