mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 19:14:16 +00:00
show follow button if is not self account
This commit is contained in:
parent
1fdd22365d
commit
767da9c0b9
@ -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>
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user