visuddhinanda 3 år sedan
förälder
incheckning
d2d1201d80

+ 23 - 0
dashboard/src/components/auth/UserName.tsx

@@ -0,0 +1,23 @@
+import { Avatar } from "antd";
+
+export interface IUser {
+  id?: string;
+  nickName?: string;
+  realName?: string;
+  onClick?: Function;
+}
+const Widget = ({ id, nickName, realName, onClick }: IUser) => {
+  return (
+    <span
+      onClick={(e) => {
+        if (typeof onClick !== "undefined") {
+          onClick(e);
+        }
+      }}
+    >
+      {nickName}
+    </span>
+  );
+};
+
+export default Widget;

+ 22 - 0
dashboard/src/components/course/TextBook.tsx

@@ -0,0 +1,22 @@
+import { Col, Row } from "antd";
+import AnthologyDetail from "../article/AnthologyDetail";
+
+interface IWidget {
+  anthologyId?: string;
+}
+const Widget = ({ anthologyId }: IWidget) => {
+  console.log("anthologyId", anthologyId);
+  return (
+    <div style={{ backgroundColor: "#f5f5f5" }}>
+      <Row>
+        <Col flex="auto"></Col>
+        <Col flex="1260px">
+          <AnthologyDetail aid={anthologyId} />
+        </Col>
+        <Col flex="auto"></Col>
+      </Row>
+    </div>
+  );
+};
+
+export default Widget;