|
|
|
@ -117,10 +117,12 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
|
|
|
|
|
</ul>
|
|
|
|
|
<div>
|
|
|
|
|
{community.subscribed
|
|
|
|
|
? <button class="btn btn-sm btn-secondary" onClick={linkEvent(community.id, this.handleUnsubscribe)}>Unsubscribe</button>
|
|
|
|
|
: <button class="btn btn-sm btn-secondary" onClick={linkEvent(community.id, this.handleSubscribe)}>Subscribe</button>
|
|
|
|
|
? <button class="btn btn-sm btn-secondary btn-block mb-3" onClick={linkEvent(community.id, this.handleUnsubscribe)}>Unsubscribe</button>
|
|
|
|
|
: <button class="btn btn-sm btn-secondary btn-block mb-3" onClick={linkEvent(community.id, this.handleSubscribe)}>Subscribe</button>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
<Link class="btn btn-sm btn-secondary btn-block mb-3"
|
|
|
|
|
to={`/create_post/c/${community.name}`}>Create a Post</Link>
|
|
|
|
|
{community.description &&
|
|
|
|
|
<div>
|
|
|
|
|
<hr />
|
|
|
|
|