mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 03:40:14 +00:00
Improved channel subscribe button.
This commit is contained in:
parent
0f5ad25a92
commit
5bf24d1576
@ -185,20 +185,20 @@ const Channel: NextPage = () => {
|
||||
className="unsubscribe"
|
||||
type="button"
|
||||
id="{{ channel.source.channel_id }}"
|
||||
onClick={() => console.log("unsubscribe(this.id)")}
|
||||
title="Unsubscribe from {{ channel.source.channel_name }}"
|
||||
onClick={() => console.log("unsubscribe(this.id) -> toggleSubscribe()")}
|
||||
title={`${channel?.channel_subscribed ? "Unsubscribe from" : "Subscribe to"} ${channel?.channel_name}`}
|
||||
>
|
||||
Unsubscribe
|
||||
{channel?.channel_subscribed ? "Unsubscribe" : "Subscribe"}
|
||||
</button>
|
||||
{/* {% else %} */}
|
||||
<button
|
||||
{/* <button
|
||||
type="button"
|
||||
id="{{ channel.source.channel_id }}"
|
||||
onClick={() => console.log("subscribe(this.id)")}
|
||||
title="Subscribe to {{ channel.source.channel_name }}"
|
||||
>
|
||||
Subscribe
|
||||
</button>
|
||||
</button> */}
|
||||
{/* {% endif %} */}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user