Skip to content

Commit

Permalink
fix: remove cancel icon from sharing option
Browse files Browse the repository at this point in the history
  • Loading branch information
amar-1995 authored Sep 25, 2023
1 parent ab0b966 commit a0fccf6
Showing 1 changed file with 4 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useScreenShare } from '@100mslive/react-sdk';
import { StarIcon, VerticalMenuIcon } from '@100mslive/react-icons';
import PDFShareImg from './../../images/pdf-share.png';
import ScreenShareImg from './../../images/screen-share.png';
import { Box, Button, Dropdown, Flex, IconButton, Text, Tooltip } from '../../../';
import { Box, Dropdown, Flex, IconButton, Text, Tooltip } from '../../../';
import { ShareMenuIcon } from '../ShareMenuIcon';
import { PDFFileOptions } from './pdfFileOptions';

Expand Down Expand Up @@ -75,7 +75,8 @@ export function ShareScreenOptions() {
alignItems: 'flex-start',
gap: '$8',
px: '$10',
py: '$6',
pt: '$6',
pb: '$10',
'&:hover': {
bg: '$transparent',
cursor: 'default',
Expand Down Expand Up @@ -163,7 +164,7 @@ export function ShareScreenOptions() {
align="center"
css={{
position: 'absolute',
top: '29%',
top: '35%',
left: '54%',
padding: '$2 $4',
r: '$2',
Expand Down Expand Up @@ -200,32 +201,6 @@ export function ShareScreenOptions() {
</Flex>
</Flex>
</Dropdown.Item>
<Dropdown.Item
css={{
px: '$10',
pb: '$10',
pt: '$6',
'&:hover': {
bg: '$transparent',
cursor: 'default',
},
}}
>
<Button
variant="standard"
outlined
type="submit"
onClick={() => {
updateState(MODALS.SHARE, false);
}}
data-testid="share_btn"
css={{
w: '100%',
}}
>
Cancel
</Button>
</Dropdown.Item>
</Dropdown.Content>
</Dropdown.Root>
{openModals.has(MODALS.PDF_SHARE) && (
Expand Down

0 comments on commit a0fccf6

Please sign in to comment.