ソースを参照

pr 不显示channel名称

visuddhinanda 2 年 前
コミット
6946a8dd54
1 ファイル変更2 行追加2 行削除
  1. 2 2
      dashboard/src/components/template/SentEdit/EditInfo.tsx

+ 2 - 2
dashboard/src/components/template/SentEdit/EditInfo.tsx

@@ -98,8 +98,8 @@ interface IDetailsWidget {
 
 export const Details = ({ data, isPr }: IDetailsWidget) => (
   <Space wrap>
-    <Channel {...data.channel} />
-    <User {...data.editor} showAvatar={isPr ? true : false} />
+    {isPr ? <></> : <Channel {...data.channel} />}
+    <User {...data.editor} showAvatar={false} />
     {data.prEditAt ? (
       <TimeShow
         type="secondary"