mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-12 12:04: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">
|
<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>
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user