Skip to content

Commit

Permalink
feat: remove share changes
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Amrutiya <amitamrutiya2210@gmail.com>
  • Loading branch information
amitamrutiya committed Jan 18, 2025
1 parent 3a06536 commit 5763094
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/custom/ShareModal/ShareModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ const ShareModal: React.FC<ShareModalProps> = ({
handleShare,
hostURL = null,
handleCopy,

isVisibilitySelectorDisabled = false,
fetchSuggestions
}: ShareModalProps): JSX.Element => {
Expand Down Expand Up @@ -220,6 +221,7 @@ const ShareModal: React.FC<ShareModalProps> = ({
setOption(selectedResource?.visibility);
}
}, [selectedResource]);

return (
<div style={{ marginBottom: '1rem' }}>
<Modal
Expand Down Expand Up @@ -255,14 +257,12 @@ const ShareModal: React.FC<ShareModalProps> = ({
<PublicIcon
width={24}
height={24}
fill={theme.palette.icon.default}
stroke={theme.palette.mode === 'dark' ? WHITE : BLACK}
/>
) : (
<LockIcon
width={24}
height={24}
fill={theme.palette.icon.default}
stroke={theme.palette.mode === 'dark' ? WHITE : BLACK}
/>
)}
Expand All @@ -289,13 +289,7 @@ const ShareModal: React.FC<ShareModalProps> = ({
</MenuItem>
))}
</CustomSelect>
<Typography
sx={{
color: theme.palette.text.secondary
}}
component="span"
variant="body2"
>
<Typography component="span" variant="body2">
{selectedOption === SHARE_MODE.PRIVATE ? options.PRIVATE : options.PUBLIC}
</Typography>
</div>
Expand Down

0 comments on commit 5763094

Please sign in to comment.