瀏覽代碼

isCommunity?: boolean;

visuddhinanda 2 年之前
父節點
當前提交
582196d6e8
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      dashboard/src/components/template/Term.tsx

+ 3 - 1
dashboard/src/components/template/Term.tsx

@@ -30,7 +30,7 @@ interface IWidgetTermCtl {
   parentChannelId?: string /**该术语所在译文的channel_id */;
   parentStudioId?: string /**该术语所在译文的studio_id */;
   summary?: string;
-  isCommunity?: string;
+  isCommunity?: boolean;
 }
 const TermCtl = ({
   id,
@@ -119,6 +119,7 @@ const TermCtl = ({
                   channelId={termData.channelId}
                   parentChannelId={parentChannelId}
                   parentStudioId={parentStudioId}
+                  community={isCommunity}
                 />
               </Space>
             </Space>
@@ -202,6 +203,7 @@ const TermCtl = ({
         word={termData?.word}
         parentChannelId={parentChannelId}
         parentStudioId={parentStudioId}
+        community={isCommunity}
       />
     );
   }