|
@@ -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);
|
|
|
|
|
+ }
|
|
|
|
|
+ }}
|
|
|
|
|
+ />
|
|
|
) : (
|
|
) : (
|
|
|
<></>
|
|
<></>
|
|
|
)}
|
|
)}
|