瀏覽代碼

add createdAt

visuddhinanda 2 年之前
父節點
當前提交
f28826ba0c
共有 1 個文件被更改,包括 15 次插入4 次删除
  1. 15 4
      dashboard/src/components/template/SentEdit/EditInfo.tsx

+ 15 - 4
dashboard/src/components/template/SentEdit/EditInfo.tsx

@@ -19,18 +19,29 @@ const EditInfoWidget = ({ data, isPr = false, compact = false }: IWidget) => {
     <Space>
     <Space>
       <Channel {...data.channel} />
       <Channel {...data.channel} />
       <User {...data.editor} showAvatar={isPr ? true : false} />
       <User {...data.editor} showAvatar={isPr ? true : false} />
-      <span>edit</span>
       {data.prEditAt ? (
       {data.prEditAt ? (
-        <TimeShow updatedAt={data.prEditAt} />
+        <TimeShow
+          type="secondary"
+          updatedAt={data.prEditAt}
+          createdAt={data.createdAt}
+        />
       ) : (
       ) : (
-        <TimeShow updatedAt={data.updateAt} />
+        <TimeShow
+          type="secondary"
+          updatedAt={data.updateAt}
+          createdAt={data.createdAt}
+        />
       )}
       )}
       {data.acceptor ? (
       {data.acceptor ? (
         <User {...data.acceptor} showAvatar={false} />
         <User {...data.acceptor} showAvatar={false} />
       ) : undefined}
       ) : undefined}
       {data.acceptor ? "accept at" : undefined}
       {data.acceptor ? "accept at" : undefined}
       {data.prEditAt ? (
       {data.prEditAt ? (
-        <TimeShow updatedAt={data.updateAt} showLabel={false} />
+        <TimeShow
+          type="secondary"
+          updatedAt={data.updateAt}
+          showLabel={false}
+        />
       ) : undefined}
       ) : undefined}
     </Space>
     </Space>
   );
   );