- Added AssigneeSelector, Avatar, AvatarGroup, Button, Checkbox, CustomColordLabel, CustomNumberLabel, LabelsSelector, Progress, Tag, and Tooltip components for improved UI functionality. - Updated Vite configuration to change the development server port to 5173 and removed unnecessary interop settings for module compatibility. - Enhanced task management components to utilize new task structure and improve performance.
30 lines
673 B
TypeScript
30 lines
673 B
TypeScript
import React from 'react';
|
|
import { Tooltip } from 'antd';
|
|
|
|
interface CustomNumberLabelProps {
|
|
labelList: string[];
|
|
namesString: string;
|
|
isDarkMode?: boolean;
|
|
}
|
|
|
|
const CustomNumberLabel: React.FC<CustomNumberLabelProps> = ({
|
|
labelList,
|
|
namesString,
|
|
isDarkMode = false
|
|
}) => {
|
|
return (
|
|
<Tooltip title={labelList.join(', ')}>
|
|
<span
|
|
className={`
|
|
inline-flex items-center px-2 py-0.5 rounded text-xs font-medium
|
|
${isDarkMode ? 'bg-gray-600 text-gray-100' : 'bg-gray-200 text-gray-700'}
|
|
cursor-help
|
|
`}
|
|
>
|
|
{namesString}
|
|
</span>
|
|
</Tooltip>
|
|
);
|
|
};
|
|
|
|
export default CustomNumberLabel;
|