Explorar el Código

pr 不显示channel名称

visuddhinanda hace 2 años
padre
commit
6946a8dd54
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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) => (
 export const Details = ({ data, isPr }: IDetailsWidget) => (
   <Space wrap>
   <Space wrap>
-    <Channel {...data.channel} />
-    <User {...data.editor} showAvatar={isPr ? true : false} />
+    {isPr ? <></> : <Channel {...data.channel} />}
+    <User {...data.editor} showAvatar={false} />
     {data.prEditAt ? (
     {data.prEditAt ? (
       <TimeShow
       <TimeShow
         type="secondary"
         type="secondary"