visuddhinanda 3 лет назад
Родитель
Сommit
c267b73ca7
1 измененных файлов с 10 добавлено и 5 удалено
  1. 10 5
      dashboard/src/components/template/SentEdit/SentCell.tsx

+ 10 - 5
dashboard/src/components/template/SentEdit/SentCell.tsx

@@ -1,5 +1,6 @@
 import { Space } from "antd";
 import { Space } from "antd";
 import { useState } from "react";
 import { useState } from "react";
+import { Typography } from "antd";
 import User from "../../auth/User";
 import User from "../../auth/User";
 import TimeShow from "../../utilities/TimeShow";
 import TimeShow from "../../utilities/TimeShow";
 import { ISentence } from "../SentEdit";
 import { ISentence } from "../SentEdit";
@@ -7,6 +8,8 @@ import SentEditMenu from "./SentEditMenu";
 import SentCellEditable from "./SentCellEditable";
 import SentCellEditable from "./SentCellEditable";
 import MdView from "../MdView";
 import MdView from "../MdView";
 
 
+const { Text } = Typography;
+
 interface ISentCell {
 interface ISentCell {
   data: ISentence;
   data: ISentence;
 }
 }
@@ -36,11 +39,13 @@ const Widget = ({ data }: ISentCell) => {
         />
         />
       </div>
       </div>
       <div>
       <div>
-        <Space>
-          <User {...sentData.editor} />
-          <span>updated</span>
-          <TimeShow time={sentData.updateAt} title="UpdatedAt" />
-        </Space>
+        <Text type="secondary">
+          <Space>
+            <User {...sentData.editor} />
+            <span>updated</span>
+            <TimeShow time={sentData.updateAt} title="UpdatedAt" />
+          </Space>
+        </Text>
       </div>
       </div>
     </SentEditMenu>
     </SentEditMenu>
   );
   );