diff --git a/apps/web/src/view/Course/index.less b/apps/web/src/view/Course/index.less
index 7531436..1903843 100644
--- a/apps/web/src/view/Course/index.less
+++ b/apps/web/src/view/Course/index.less
@@ -12,6 +12,16 @@
.xicon {
display: initial;
}
+ .icon {
+ > svg {
+ width: 20px;
+ height: 20px;
+ }
+ color: var(--color-text-4);
+ &.active {
+ color: var(--color-text-2);
+ }
+ }
}
.thumbnail-timeline {
diff --git a/apps/web/src/view/Course/index.tsx b/apps/web/src/view/Course/index.tsx
index 13794ca..4e48dd3 100644
--- a/apps/web/src/view/Course/index.tsx
+++ b/apps/web/src/view/Course/index.tsx
@@ -3,7 +3,6 @@ import Timeline, { IOnScrollParam } from "./components/Timeline";
import Tab20Regular from "@ricons/fluent/Tab20Regular";
import Table20Regular from "@ricons/fluent/Table20Regular";
import { useRef, useState } from "react";
-import { Icon } from "@ricons/utils";
import { useNavigate } from "react-router-dom";
import { useMount } from "../../hook";
import { getCourseList } from "../../api";
@@ -88,17 +87,10 @@ export default function Index() {
key={action.key}
style={{ cursor: "pointer" }}
onClick={() => onClickActionItem(action)}
- className="bs tip ml6"
+ className={`bs tip ml6 icon ${action.active ? "active" : ""}`}
data-tip={action.tip}
>
-