Parcourir la source

:fire: import { PaliReal }

visuddhinanda il y a 2 ans
Parent
commit
73e4569d82
1 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 2 3
      dashboard/src/components/template/Wbw/WbwPali.tsx

+ 2 - 3
dashboard/src/components/template/Wbw/WbwPali.tsx

@@ -11,7 +11,6 @@ import "./wbw.css";
 import WbwDetail from "./WbwDetail";
 import { IWbw, TWbwDisplayMode } from "./WbwWord";
 import { bookMarkColor } from "./WbwDetailBookMark";
-import { PaliReal } from "../../../utils";
 import WbwVideoButton from "./WbwVideoButton";
 import CommentBox from "../../comment/CommentBox";
 import PaliText from "./PaliText";
@@ -138,7 +137,7 @@ const WbwPaliWidget = ({ data, display, onSave }: IWidget) => {
   );
   const classPali = data.style?.value === "note" ? "wbw_note" : "pali";
   let padding: string;
-  if (typeof data.real !== "undefined" && PaliReal(data.real.value) !== "") {
+  if (typeof data.real !== "undefined" && data.real.value !== "") {
     padding = "4px";
   } else {
     padding = "4px 0";
@@ -208,7 +207,7 @@ const WbwPaliWidget = ({ data, display, onSave }: IWidget) => {
     </div>
   ) : undefined;
 
-  if (typeof data.real !== "undefined" && PaliReal(data.real.value) !== "") {
+  if (typeof data.real !== "undefined" && data.real.value !== "") {
     //非标点符号
     return (
       <div className="pali_shell">