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

+ 10 - 0
dashboard/src/components/article/RightPanel.tsx

@@ -14,6 +14,7 @@ import DiscussionBox from "../discussion/DiscussionBox";
 import { show } from "../../reducers/discussion";
 import { useIntl } from "react-intl";
 import SuggestionBox from "../template/SentEdit/SuggestionBox";
+import ChannelMy from "../channel/ChannelMy";
 
 export type TPanelName =
   | "dict"
@@ -168,6 +169,15 @@ const RightPanelWidget = ({
               key: "channel",
               children: (
                 <div style={tabInnerStyle}>
+                  <ChannelMy
+                    selectedKeys={selectedChannelsId}
+                    onSelect={(e: IChannel[]) => {
+                      console.log(e);
+                      if (typeof onChannelSelect !== "undefined") {
+                        onChannelSelect(e);
+                      }
+                    }}
+                  />
                   <ChannelPickerTable
                     type={type}
                     articleId={articleId}