fix(style): worker upgrade tips do not show

This commit is contained in:
jialin
2026-06-02 17:51:25 +08:00
committed by jialin
parent c01f4d3ce8
commit 0413d470a8
@@ -248,8 +248,6 @@ const useWorkerColumns = ({
const systemConfig = useAtomValue(systemConfigAtom);
const [version] = useAtom(GPUStackVersionAtom);
console.log('version in useWorkerColumns', version);
const renderIP = (text: string, record: ListItem) => {
if (record.advertise_address === record.ip) {
return <span className="text-primary">{record.ip}</span>;
@@ -369,14 +367,16 @@ const useWorkerColumns = ({
</div>
}
>
{shouldUpgrade ? (
<IconFont
type="icon-upgrade"
style={{ color: 'var(--ant-color-warning)' }}
></IconFont>
) : (
<InfoCircleOutlined style={{ color: 'var(--ant-blue-5)' }} />
)}
<span>
{shouldUpgrade ? (
<IconFont
type="icon-upgrade"
style={{ color: 'var(--ant-color-warning)' }}
></IconFont>
) : (
<InfoCircleOutlined style={{ color: 'var(--ant-blue-5)' }} />
)}
</span>
</Tooltip>
);
};