show follow button if is not self account

This commit is contained in:
SrGooglo 2023-01-05 16:55:52 +00:00
parent 1fdd22365d
commit 767da9c0b9

View File

@ -9,15 +9,17 @@ export default (props) => {
<div className="counter">
{props.count}
</div>
<Button
type="ghost"
onClick={props.onClick}
className={classnames(
"btn",
{ ["followed"]: props.followed }
)}
>
<span>{props.followed ? "Following" : "Follow"}</span>
</Button>
{
!props.self && <Button
type="ghost"
onClick={props.onClick}
className={classnames(
"btn",
{ ["followed"]: props.followed }
)}
>
<span>{props.followed ? "Following" : "Follow"}</span>
</Button>
}
</div>
}