Skip to content

Commit 4617e90

Browse files
committed
fix(selector): prop for visibility change
Signed-off-by: Sudhanshu Dasgupta <[email protected]>
1 parent a6d0779 commit 4617e90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/custom/CatalogDetail/SocialSharePopper.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ interface SocialSharePopperProps {
3030
showShareAction: boolean;
3131
handleShare: () => void;
3232
isVisibilityEnabled: boolean;
33-
handleVisibilityChange: () => void;
33+
handleVisibilityChange: (visibility: VIEW_VISIBILITY) => void;
3434
}
3535

3636
const SocialSharePopper: React.FC<SocialSharePopperProps> = ({
@@ -63,7 +63,7 @@ const SocialSharePopper: React.FC<SocialSharePopperProps> = ({
6363
<CopyShareIconWrapper style={{ marginBottom: '2rem' }}>
6464
<VisibilityChipMenu
6565
value={details?.visibility as VIEW_VISIBILITY}
66-
onChange={handleVisibilityChange}
66+
onChange={(value) => handleVisibilityChange(value as VIEW_VISIBILITY)}
6767
enabled={isVisibilityEnabled}
6868
options={[
6969
[VIEW_VISIBILITY.PUBLIC, PublicIcon],

0 commit comments

Comments
 (0)