Replace inline color spans with Typography.Text

This commit is contained in:
CPTProgrammer 2026-07-16 13:11:30 +08:00
parent 1cb0a444d0
commit c39c135d91
No known key found for this signature in database

View File

@ -1,6 +1,6 @@
"use client"; "use client";
import { Table, Empty, Tag } from "antd"; import { Table, Empty, Tag, Typography } from "antd";
import { useMemo } from "react"; import { useMemo } from "react";
import type { ParsedProject } from "@/services/project"; import type { ParsedProject } from "@/services/project";
@ -53,7 +53,7 @@ export function VersionTable({
return isLast ? ( return isLast ? (
<Tag color="blue"></Tag> <Tag color="blue"></Tag>
) : ( ) : (
<span style={{ color: "#8c8c8c" }}></span> <Typography.Text type="secondary"></Typography.Text>
); );
}, },
}, },
@ -64,9 +64,9 @@ export function VersionTable({
ellipsis: true, ellipsis: true,
render: (val: string | null) => render: (val: string | null) =>
val ? ( val ? (
<span style={{ color: "#52C41A" }}>{val}</span> <Typography.Text>{val}</Typography.Text>
) : ( ) : (
<span style={{ color: "#FF4D4F" }}></span> <Typography.Text type="danger"></Typography.Text>
), ),
}, },
{ {
@ -76,9 +76,9 @@ export function VersionTable({
ellipsis: true, ellipsis: true,
render: (val: string | null) => render: (val: string | null) =>
val ? ( val ? (
<span style={{ color: "#52C41A" }}>{val}</span> <Typography.Text>{val}</Typography.Text>
) : ( ) : (
<span style={{ color: "#FF4D4F" }}></span> <Typography.Text type="danger"></Typography.Text>
), ),
}, },
]; ];