visuddhinanda 3 лет назад
Родитель
Сommit
6236a05be4
1 измененных файлов с 10 добавлено и 2 удалено
  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;