Browse Source

add ArticleType

visuddhinanda 3 years ago
parent
commit
6236a05be4
1 changed files with 10 additions and 2 deletions
  1. 10 2
      dashboard/src/components/article/Article.tsx

+ 10 - 2
dashboard/src/components/article/Article.tsx

@@ -1,10 +1,18 @@
-import { Button, message } from "antd";
+import { message } from "antd";
 import { useEffect, useState } from "react";
 import { get } from "../../request";
 import { IArticleDataResponse, IArticleResponse } from "../api/Article";
-import ArticleView, { IWidgetArticleData } from "./ArticleView";
+import ArticleView from "./ArticleView";
 
 export type ArticleMode = "read" | "edit";
+export type ArticleType =
+  | "article"
+  | "chapter"
+  | "paragraph"
+  | "cs-paragraph"
+  | "sentence"
+  | "sim"
+  | "page";
 interface IWidgetArticle {
   type?: string;
   articleId?: string;