visuddhinanda %!s(int64=3) %!d(string=hai) anos
pai
achega
498e670a56
Modificáronse 1 ficheiros con 8 adicións e 5 borrados
  1. 8 5
      dashboard/src/components/template/Exercise.tsx

+ 8 - 5
dashboard/src/components/template/Exercise.tsx

@@ -1,4 +1,4 @@
-import { Button } from "antd";
+import { Button, Card } from "antd";
 
 
 interface IWidgetExerciseCtl {
 interface IWidgetExerciseCtl {
   id?: string;
   id?: string;
@@ -7,10 +7,13 @@ interface IWidgetExerciseCtl {
 }
 }
 const ExerciseCtl = ({ id, channel, children }: IWidgetExerciseCtl) => {
 const ExerciseCtl = ({ id, channel, children }: IWidgetExerciseCtl) => {
   return (
   return (
-    <>
-      <div>{children}</div>
-      <Button type="primary">做练习</Button>
-    </>
+    <Card
+      title="练习"
+      extra={<Button type="primary">做练习</Button>}
+      style={{ backgroundColor: "wheat" }}
+    >
+      {children}
+    </Card>
   );
   );
 };
 };