mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-21 19:30:16 +00:00
Format number of subscribers
This commit is contained in:
parent
4082fe1e1c
commit
0f5ad25a92
@ -6,6 +6,7 @@ import { CustomHead } from "../components/CustomHead";
|
||||
import { Layout } from "../components/Layout";
|
||||
import { getTAUrl } from "../lib/constants";
|
||||
import { getChannels } from "../lib/getChannels";
|
||||
import { formatNumbers } from "../lib/utils";
|
||||
|
||||
const TA_BASE_URL = getTAUrl();
|
||||
|
||||
@ -170,7 +171,7 @@ const Channel: NextPage = () => {
|
||||
</a>
|
||||
</h3>
|
||||
{/* {% if channel.source.channel_subs >= 1000000 %} */}
|
||||
<p>Subscribers: {channel?.channel_subs} </p>
|
||||
<p>Subscribers: {formatNumbers(channel?.channel_subs)} </p>
|
||||
{/* {% else %} */}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user