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"> <div className="counter">
{props.count} {props.count}
</div> </div>
<Button {
type="ghost" !props.self && <Button
onClick={props.onClick} type="ghost"
className={classnames( onClick={props.onClick}
"btn", className={classnames(
{ ["followed"]: props.followed } "btn",
)} { ["followed"]: props.followed }
> )}
<span>{props.followed ? "Following" : "Follow"}</span> >
</Button> <span>{props.followed ? "Following" : "Follow"}</span>
</Button>
}
</div> </div>
} }