fix(#1002): normalize class name for LinkButton

This commit is contained in:
haitao(lj) 2022-10-11 14:59:33 +08:00 committed by mingcheng
parent d5b5f1161a
commit e6ce5712a3
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ const Index: FC<Props> = ({
className = 'fs-14', className = 'fs-14',
}) => { }) => {
return ( return (
<div className={`link-secondary ${className}`}> <div className={`text-secondary ${className}`}>
{data?.status !== 'deleted' ? ( {data?.status !== 'deleted' ? (
<Link to={`/users/${data?.username}`}> <Link to={`/users/${data?.username}`}>
{showAvatar && ( {showAvatar && (

View File

@ -19,7 +19,7 @@ const Index: FC<Props> = ({ data, time, preFix }) => {
) : ( ) : (
<Avatar avatar={data?.avatar} size="40px" className="me-2" /> <Avatar avatar={data?.avatar} size="40px" className="me-2" />
)} )}
<div className="fs-14 link-secondary"> <div className="fs-14 text-secondary">
<div> <div>
{data?.status !== 'deleted' ? ( {data?.status !== 'deleted' ? (
<Link to={`/users/${data?.username}`} className="me-1 text-break"> <Link to={`/users/${data?.username}`} className="me-1 text-break">