feat: 历史事件对比没数据数量展示0
This commit is contained in:
@@ -41,7 +41,7 @@ const CollapsibleHeader = ({ title, isOpen, onToggle, count = null }) => {
|
|||||||
<Heading size="sm" color={headingColor}>
|
<Heading size="sm" color={headingColor}>
|
||||||
{title}
|
{title}
|
||||||
</Heading>
|
</Heading>
|
||||||
{count !== null && (
|
{count !== null && count > 0 && (
|
||||||
<Badge colorScheme="blue" borderRadius="full">
|
<Badge colorScheme="blue" borderRadius="full">
|
||||||
{count}
|
{count}
|
||||||
</Badge>
|
</Badge>
|
||||||
|
|||||||
Reference in New Issue
Block a user