Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Use icon instead of the word viewers

Gabe Kangasc7cc097cc9d3
diff --git a/web/components/ui/Statusbar/Statusbar.tsx b/web/components/ui/Statusbar/Statusbar.tsx
index 1b5b2bf21d..41f0935459 100644
--- a/web/components/ui/Statusbar/Statusbar.tsx
+++ b/web/components/ui/Statusbar/Statusbar.tsx
@@ -1,6 +1,7 @@
import formatDistanceToNow from 'date-fns/formatDistanceToNow';
import intervalToDuration from 'date-fns/intervalToDuration';
import { useEffect, useState } from 'react';
+import { EyeOutlined } from '@ant-design/icons';
import s from './Statusbar.module.scss';
interface Props {
@@ -35,13 +36,15 @@ export default function Statusbar(props: Props) {
const { online, lastConnectTime, lastDisconnectTime, viewerCount } = props;
let onlineMessage = '';
- let rightSideMessage = '';
+ let rightSideMessage: any;
if (online && lastConnectTime) {
const duration = makeDurationString(new Date(lastConnectTime));
onlineMessage = online ? `Live for ${duration}` : 'Offline';
- rightSideMessage = `${viewerCount > 0 ? `${viewerCount}` : 'No'} ${
- viewerCount === 1 ? 'viewer' : 'viewers'
- }`;
+ rightSideMessage = (
+ <span>
+ <EyeOutlined /> {viewerCount}
+ </span>
+ );
} else {
onlineMessage = 'Offline';
if (lastDisconnectTime) {