Sfoglia il codice sorgente

pr_icon -> tran_sent

visuddhinanda 2 anni fa
parent
commit
ea48f9f594

+ 1 - 3
dashboard/src/components/template/SentEdit/SentCell.tsx

@@ -44,14 +44,12 @@ const SentCellWidget = ({
     }
     }
   }, [acceptPr, data, isPr]);
   }, [acceptPr, data, isPr]);
   const sid = `${sentData.book}_${sentData.para}_${sentData.wordStart}_${sentData.wordEnd}_${sentData.channel.id}`;
   const sid = `${sentData.book}_${sentData.para}_${sentData.wordStart}_${sentData.wordEnd}_${sentData.channel.id}`;
-  const hasPr = sentData.suggestionCount?.suggestion ? "true" : "false";
-  const hasDiscussion = sentData.suggestionCount?.discussion ? "true" : "false";
   return (
   return (
     <div style={{ marginBottom: "8px" }}>
     <div style={{ marginBottom: "8px" }}>
       {isPr ? undefined : (
       {isPr ? undefined : (
         <div
         <div
           dangerouslySetInnerHTML={{
           dangerouslySetInnerHTML={{
-            __html: `<div class="pr_icon" id="${sid}" has-pr="${hasPr}" has-disc="${hasDiscussion}" data-pr="${data.suggestionCount?.suggestion}"></div>`,
+            __html: `<div class="tran_sent" id="${sid}" ></div>`,
           }}
           }}
         />
         />
       )}
       )}