visuddhinanda 2 лет назад
Родитель
Сommit
9e8a7f5fe8
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      dashboard/src/components/template/QuoteLink.tsx

+ 2 - 3
dashboard/src/components/template/QuoteLink.tsx

@@ -33,7 +33,7 @@ const QuoteLinkCtl = ({
   found,
 }: IWidgetQuoteLinkCtl) => {
   const [tpl, setTpl] = useState<string>();
-  let textShow = volume === 0 ? page : ` ${volume}.${page}`;
+  let textShow = volume === 0 ? ` ${page}` : ` ${volume}.${page}`;
   if (type === "c") {
     textShow = ` ${chapter}`;
   }
@@ -68,8 +68,7 @@ const QuoteLinkCtl = ({
               title
             ) : (
               <>
-                <TermCtl {...term} compact={true} />
-                {textShow}
+                <TermCtl {...term} compact={true} /> {textShow}
               </>
             )
           }