mirror of https://gitee.com/answerdev/answer.git
fix(Tag): Replace `slug_name` with `display_name` to display `tag` information
This commit is contained in:
parent
4b00a7f238
commit
e8afba56f5
|
@ -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>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
})}
|
||||
|
|
Loading…
Reference in New Issue