diff --git a/src/components/status-table.tsx b/src/components/status-table.tsx index f0418d5..f865680 100644 --- a/src/components/status-table.tsx +++ b/src/components/status-table.tsx @@ -1,7 +1,7 @@ import { Link } from "react-router-dom"; import { ProColumns, ProTable } from "@ant-design/pro-components"; -import { Button, Space } from "antd"; +import { Button, Space, Tag } from "antd"; import { StatusApi } from "../api/status.ts"; @@ -35,6 +35,10 @@ const columns: ProColumns[] = [ title: "Point", dataIndex: "point", align: "center", + render: (_node, entity) => { + const color = entity.point === "Pending" ? "purple" : entity.point === "100" ? "green" : "red"; + return {entity.point}; + }, }, { title: "Date", diff --git a/src/pages/search.tsx b/src/pages/search.tsx index f3acf94..822abeb 100644 --- a/src/pages/search.tsx +++ b/src/pages/search.tsx @@ -1,7 +1,7 @@ import { Link } from "react-router-dom"; import { ProColumns, ProTable } from "@ant-design/pro-components"; -import { Button } from "antd"; +import { Button, Space } from "antd"; import { ProblemApi } from "../api/problem.ts"; @@ -35,9 +35,15 @@ const columns: ProColumns[] = [ dataIndex: "action", render: (_node, entity) => { return ( - + + + + + ); }, },