visuddhinanda пре 1 година
родитељ
комит
c6ec6898f4
1 измењених фајлова са 11 додато и 10 уклоњено
  1. 11 10
      dashboard/src/pages/studio/course/list.tsx

+ 11 - 10
dashboard/src/pages/studio/course/list.tsx

@@ -40,6 +40,7 @@ import {
 import { ISetStatus, setStatus } from "../../../components/course/UserAction";
 import { useAppSelector } from "../../../hooks";
 import { currentUser } from "../../../reducers/current-user";
+import User from "../../../components/auth/User";
 
 const renderBadge = (count: number, active = false) => {
   return (
@@ -172,19 +173,19 @@ const Widget = () => {
                       </Tag>
                     </div>
                     <div>{row.subtitle}</div>
+                    <div>
+                      <Space>
+                        {intl.formatMessage({
+                          id: "forms.fields.teacher.label",
+                        })}
+                        <User {...row.teacher} />
+                      </Space>
+                    </div>
                   </div>
                 </Space>
               );
             },
           },
-          {
-            //主讲人
-            title: intl.formatMessage({
-              id: "forms.fields.teacher.label",
-            }),
-            dataIndex: "teacher",
-            key: "teacher",
-          },
           {
             title: intl.formatMessage({
               id: "course.table.count.member.title",
@@ -197,8 +198,8 @@ const Widget = () => {
             title: intl.formatMessage({
               id: "course.table.count.progressing.title",
             }),
-            dataIndex: "countProgressing",
-            key: "countProgressing",
+            dataIndex: "count_progressing",
+            key: "count_progressing",
             width: 80,
             hideInTable: activeKey === "study" ? true : false,
           },