fix: delete worker

This commit is contained in:
jialin
2024-07-10 17:14:55 +08:00
parent 0ed7568859
commit 8607815240
14 changed files with 129 additions and 16 deletions
+13 -1
View File
@@ -1,5 +1,7 @@
import { StatusColorMap } from '@/config';
import { StatusType } from '@/config/types';
import { InfoCircleOutlined } from '@ant-design/icons';
import { Tooltip } from 'antd';
import classNames from 'classnames';
import { useEffect, useState } from 'react';
import './index.less';
@@ -16,6 +18,7 @@ type StatusTagProps = {
statusValue: {
status: StatusType;
text: string;
message?: string;
};
download?: {
percent: number;
@@ -56,7 +59,16 @@ const StatusTag: React.FC<StatusTagProps> = ({ statusValue, download }) => {
border: `1px solid ${statusColor?.text}`
}}
>
{renderContent()}
{statusValue.message ? (
<Tooltip title={statusValue.message}>
<span className="m-r-5">
<InfoCircleOutlined />
</span>
{renderContent()}
</Tooltip>
) : (
renderContent()
)}
</span>
);
};