Skip to content

Commit

Permalink
fix: renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
amar-1995 committed May 22, 2024
1 parent 844fa20 commit 5fe9fe7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const MODALS = {
BULK_ROLE_CHANGE: 'bulkRoleChange',
MUTE_ALL: 'muteAll',
EMBED_URL: 'embedUrl',
ADMIN_CAPTION: 'adminCaption',
CAPTION: 'caption',
};

export const DesktopOptions = ({
Expand Down Expand Up @@ -135,7 +135,7 @@ export const DesktopOptions = ({
<Dropdown.Item
data-testid="closed_caption_admin"
onClick={() => {
updateState(MODALS.ADMIN_CAPTION, true);
updateState(MODALS.CAPTION, true);
}}
>
<OpenCaptionIcon />
Expand Down Expand Up @@ -240,8 +240,8 @@ export const DesktopOptions = ({
onOpenChange={(value: boolean) => updateState(MODALS.SELF_ROLE_CHANGE, value)}
/>
)}
{openModals.has(MODALS.ADMIN_CAPTION) && (
<AdminCaptionModal onOpenChange={(value: boolean) => updateState(MODALS.ADMIN_CAPTION, value)} />
{openModals.has(MODALS.CAPTION) && (
<AdminCaptionModal onOpenChange={(value: boolean) => updateState(MODALS.CAPTION, value)} />
)}
{/* {openModals.has(MODALS.EMBED_URL) && (
<EmbedUrlModal onOpenChange={value => updateState(MODALS.EMBED_URL, value)} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const MODALS = {
BULK_ROLE_CHANGE: 'bulkRoleChange',
MUTE_ALL: 'muteAll',
EMBED_URL: 'embedUrl',
ADMIN_CAPTION: 'adminCaption',
CAPTION: 'caption',
};

export const MwebOptions = ({
Expand Down Expand Up @@ -198,7 +198,7 @@ export const MwebOptions = ({
<ActionTile.Root
onClick={() => {
setOpenOptionsSheet(false);
updateState(MODALS.ADMIN_CAPTION, true);
updateState(MODALS.CAPTION, true);
}}
>
<OpenCaptionIcon />
Expand Down Expand Up @@ -337,8 +337,8 @@ export const MwebOptions = ({
openParentSheet={() => setOpenOptionsSheet(true)}
/>
)}
{openModals.has(MODALS.ADMIN_CAPTION) && (
<AdminCaptionModal onOpenChange={(value: boolean) => updateState(MODALS.ADMIN_CAPTION, value)} />
{openModals.has(MODALS.CAPTION) && (
<AdminCaptionModal onOpenChange={(value: boolean) => updateState(MODALS.CAPTION, value)} />
)}
{showEmojiCard && (
<Box
Expand Down

0 comments on commit 5fe9fe7

Please sign in to comment.