Skip to content

Commit

Permalink
fix: hide embed url, change my role
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 authored Aug 23, 2023
1 parent 029cf01 commit 60785ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 77 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { Fragment, useState } from 'react';
import { HMSHLSPlayer } from '@100mslive/hls-player';
import {
selectAppData,
selectIsAllowedToPublish,
selectLocalPeerID,
selectLocalPeerRoleName,
useHMSActions,
Expand All @@ -17,8 +16,6 @@ import SettingsModal from '../../Settings/SettingsModal';
import StartRecording from '../../Settings/StartRecording';
import { StatsForNerds } from '../../StatsForNerds';
import { BulkRoleChangeModal } from '.././BulkRoleChangeModal';
import { ChangeSelfRole } from '.././ChangeSelfRole';
import { EmbedUrl, EmbedUrlModal } from '.././EmbedUrl';
import { FullScreenItem } from '.././FullScreenItem';
import { MuteAllModal } from '.././MuteAllModal';
import { useHLSViewerRole } from '../../AppData/useUISettings';
Expand All @@ -42,12 +39,10 @@ const MODALS = {
};

export const DesktopOptions = () => {
const isAllowedToPublish = useHMSStore(selectIsAllowedToPublish);
const localPeerId = useHMSStore(selectLocalPeerID);
const localPeerRole = useHMSStore(selectLocalPeerRoleName);
const hmsActions = useHMSActions();
const enablHlsStats = useHMSStore(selectAppData(APP_DATA.hlsStats));
const isEmbedEnabled = useIsFeatureEnabled(FEATURE_LIST.EMBED_URL);
const isSFNEnabled = useIsFeatureEnabled(FEATURE_LIST.STARTS_FOR_NERDS);
const [openModals, setOpenModals] = useState(new Set());
const { isHandRaised, isBRBOn, toggleHandRaise, toggleBRB } = useMyMetadata();
Expand Down Expand Up @@ -144,11 +139,10 @@ export const DesktopOptions = () => {
</Dropdown.Item>
) : null}

<ChangeSelfRole onClick={() => updateState(MODALS.SELF_ROLE_CHANGE, true)} />
<FullScreenItem />
{isAllowedToPublish.screen && isEmbedEnabled && (
{/* {isAllowedToPublish.screen && isEmbedEnabled && (
<EmbedUrl setShowOpenUrl={() => updateState(MODALS.EMBED_URL, true)} />
)}
)} */}

<Dropdown.ItemSeparator css={{ mx: 0 }} />

Expand Down Expand Up @@ -217,9 +211,9 @@ export const DesktopOptions = () => {
{openModals.has(MODALS.SELF_ROLE_CHANGE) && (
<RoleChangeModal peerId={localPeerId} onOpenChange={value => updateState(MODALS.SELF_ROLE_CHANGE, value)} />
)}
{openModals.has(MODALS.EMBED_URL) && (
{/* {openModals.has(MODALS.EMBED_URL) && (
<EmbedUrlModal onOpenChange={value => updateState(MODALS.EMBED_URL, value)} />
)}
)} */}
</Fragment>
);
};

0 comments on commit 60785ed

Please sign in to comment.