mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 03:40:14 +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 { Layout } from "../components/Layout";
|
||||||
import { getTAUrl } from "../lib/constants";
|
import { getTAUrl } from "../lib/constants";
|
||||||
import { getChannels } from "../lib/getChannels";
|
import { getChannels } from "../lib/getChannels";
|
||||||
|
import { formatNumbers } from "../lib/utils";
|
||||||
|
|
||||||
const TA_BASE_URL = getTAUrl();
|
const TA_BASE_URL = getTAUrl();
|
||||||
|
|
||||||
@ -170,7 +171,7 @@ const Channel: NextPage = () => {
|
|||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
{/* {% if channel.source.channel_subs >= 1000000 %} */}
|
{/* {% if channel.source.channel_subs >= 1000000 %} */}
|
||||||
<p>Subscribers: {channel?.channel_subs} </p>
|
<p>Subscribers: {formatNumbers(channel?.channel_subs)} </p>
|
||||||
{/* {% else %} */}
|
{/* {% else %} */}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user