Skip to content

Commit

Permalink
fix(selector): prop for visibility change
Browse files Browse the repository at this point in the history
Signed-off-by: Sudhanshu Dasgupta <[email protected]>
  • Loading branch information
sudhanshutech committed Dec 23, 2024
1 parent a6d0779 commit 4617e90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/custom/CatalogDetail/SocialSharePopper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ interface SocialSharePopperProps {
showShareAction: boolean;
handleShare: () => void;
isVisibilityEnabled: boolean;
handleVisibilityChange: () => void;
handleVisibilityChange: (visibility: VIEW_VISIBILITY) => void;
}

const SocialSharePopper: React.FC<SocialSharePopperProps> = ({
Expand Down Expand Up @@ -63,7 +63,7 @@ const SocialSharePopper: React.FC<SocialSharePopperProps> = ({
<CopyShareIconWrapper style={{ marginBottom: '2rem' }}>
<VisibilityChipMenu
value={details?.visibility as VIEW_VISIBILITY}
onChange={handleVisibilityChange}
onChange={(value) => handleVisibilityChange(value as VIEW_VISIBILITY)}
enabled={isVisibilityEnabled}
options={[
[VIEW_VISIBILITY.PUBLIC, PublicIcon],
Expand Down

0 comments on commit 4617e90

Please sign in to comment.