Selaa lähdekoodia

add ChannelMy

visuddhinanda 2 vuotta sitten
vanhempi
sitoutus
a2938fb7ac
1 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  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}