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