visuddhinanda 2 лет назад
Родитель
Сommit
ff31acba06
1 измененных файлов с 10 добавлено и 1 удалено
  1. 10 1
      dashboard/src/components/channel/ChannelMy.tsx

+ 10 - 1
dashboard/src/components/channel/ChannelMy.tsx

@@ -28,6 +28,7 @@ import ProgressSvg from "./ProgressSvg";
 
 
 import { IChannel } from "./Channel";
 import { IChannel } from "./Channel";
 import CopyToModal from "./CopyToModal";
 import CopyToModal from "./CopyToModal";
+import { ArticleType } from "../article/Article";
 
 
 interface ChannelTreeNode {
 interface ChannelTreeNode {
   key: string;
   key: string;
@@ -38,11 +39,19 @@ interface ChannelTreeNode {
 }
 }
 
 
 interface IWidget {
 interface IWidget {
+  type?: ArticleType | "editable";
+  articleId?: string;
   selectedKeys?: string[];
   selectedKeys?: string[];
   style?: React.CSSProperties;
   style?: React.CSSProperties;
   onSelect?: Function;
   onSelect?: Function;
 }
 }
-const ChannelMy = ({ selectedKeys = [], style, onSelect }: IWidget) => {
+const ChannelMy = ({
+  type,
+  articleId,
+  selectedKeys = [],
+  style,
+  onSelect,
+}: IWidget) => {
   const intl = useIntl();
   const intl = useIntl();
   const [selectedRowKeys, setSelectedRowKeys] =
   const [selectedRowKeys, setSelectedRowKeys] =
     useState<React.Key[]>(selectedKeys);
     useState<React.Key[]>(selectedKeys);