visuddhinanda 2 лет назад
Родитель
Сommit
a93daf778a
1 измененных файлов с 12 добавлено и 0 удалено
  1. 12 0
      dashboard/src/components/article/Article.tsx

+ 12 - 0
dashboard/src/components/article/Article.tsx

@@ -4,6 +4,7 @@ import TypeAnthology from "./TypeAnthology";
 import TypeTerm from "./TypeTerm";
 import TypePali from "./TypePali";
 import "./article.css";
+import TypePage from "./TypePage";
 
 export type ArticleMode = "read" | "edit" | "wbw";
 export type ArticleType =
@@ -133,6 +134,17 @@ const ArticleWidget = ({
             }
           }}
         />
+      ) : type === "page" ? (
+        <TypePage
+          articleId={articleId}
+          channelId={channelId}
+          mode={mode}
+          onArticleChange={(type: ArticleType, id: string) => {
+            if (typeof onArticleChange !== "undefined") {
+              onArticleChange(type, id);
+            }
+          }}
+        />
       ) : (
         <></>
       )}