fix(Tag): Replace `slug_name` with `display_name` to display `tag` information

This commit is contained in:
haitaoo 2023-03-15 17:52:45 +08:00
parent 4b00a7f238
commit e8afba56f5
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ const Index: FC<IProps> = ({
data.recommend && 'badge-tag-required',
className,
)}>
<span className={textClassName}>{data.slug_name}</span>
<span className={textClassName}>{data.display_name}</span>
</Link>
);
};

View File

@ -202,7 +202,7 @@ const TagSelector: FC<IProps> = ({
item.reserved ? 'danger' : item.recommend ? 'dark' : 'secondary'
}`}
size="sm">
{item.slug_name}
{item.display_name}
<span className="ms-1" onMouseUp={() => handleRemove(item)}>
×
</span>
@ -247,7 +247,7 @@ const TagSelector: FC<IProps> = ({
eventKey={index}
active={index === currentIndex}
onClick={() => handleClick(item)}>
{item.slug_name}
{item.display_name}
</Dropdown.Item>
);
})}