瀏覽代碼

add TypePage

visuddhinanda 2 年之前
父節點
當前提交
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 TypeTerm from "./TypeTerm";
 import TypePali from "./TypePali";
 import TypePali from "./TypePali";
 import "./article.css";
 import "./article.css";
+import TypePage from "./TypePage";
 
 
 export type ArticleMode = "read" | "edit" | "wbw";
 export type ArticleMode = "read" | "edit" | "wbw";
 export type ArticleType =
 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);
+            }
+          }}
+        />
       ) : (
       ) : (
         <></>
         <></>
       )}
       )}