visuddhinanda 2 лет назад
Родитель
Сommit
097f9efefa
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      dashboard/src/components/template/SentRead.tsx

+ 5 - 0
dashboard/src/components/template/SentRead.tsx

@@ -24,6 +24,7 @@ interface IWidgetSentReadFrame {
   wordStart?: number;
   wordEnd?: number;
   sentId?: string;
+  error?: string;
 }
 const SentReadFrame = ({
   origin,
@@ -34,6 +35,7 @@ const SentReadFrame = ({
   wordStart,
   wordEnd,
   sentId,
+  error,
 }: IWidgetSentReadFrame) => {
   const [paliCode1, setPaliCode1] = useState<TCodeConvertor>("roman");
   const key = useAppSelector(onChangeKey);
@@ -94,6 +96,9 @@ const SentReadFrame = ({
         style={{ display: "flex", flexDirection: layout, marginBottom: 10 }}
         ref={boxSent}
       >
+        <Text type="danger" mark>
+          {error}
+        </Text>
         <div
           dangerouslySetInnerHTML={{
             __html: `<div class="pcd_sent" id="sent_${book}-${para}-${wordStart}-${wordEnd}"></div>`,