Skip to content

Commit

Permalink
fix: remove degradation text
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 authored Sep 8, 2023
1 parent 5f87e80 commit a94fedc
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions packages/roomkit-react/src/Prebuilt/components/VideoTile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ import {
useHMSStore,
useHMSVanillaStore,
} from '@100mslive/react-sdk';
import { AlertTriangleSolidIcon, BrbTileIcon, HandIcon, MicOffIcon } from '@100mslive/react-icons';
import { BrbTileIcon, HandIcon, MicOffIcon } from '@100mslive/react-icons';
import TileConnection from './Connection/TileConnection';
import TileMenu, { isSameTile } from './TileMenu/TileMenu';
import { Avatar } from '../../Avatar';
import { Box, Flex } from '../../Layout';
import { VideoTileStats } from '../../Stats';
import { Text } from '../../Text';
import { keyframes } from '../../Theme';
import { Video } from '../../Video';
import { StyledVideoTile } from '../../VideoTile';
Expand Down Expand Up @@ -127,33 +126,6 @@ const Tile = ({
</StyledVideoTile.AvatarContainer>
) : null}

{isVideoDegraded ? (
<Flex
direction="column"
gap="3"
css={{
my: 'auto',
position: 'absolute',
zIndex: 2,
left: 0,
top: '50%',
w: '100%',
c: '$on_surface_high',
}}
>
<AlertTriangleSolidIcon height={32} width={32} style={{ margin: '0 auto' }} />
<Text
variant="xs"
css={{
textAlign: 'center',
}}
>
{isLocal ? 'Your' : `${peerName}${peerName?.[-1]?.toLowerCase() === 's' ? "'" : "'s"}`} network is
unstable
</Text>
</Flex>
) : null}

{!hideAudioMuteOnTile ? (
isAudioMuted ? (
<StyledVideoTile.AudioIndicator
Expand Down

0 comments on commit a94fedc

Please sign in to comment.