We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6d0779 commit 4617e90Copy full SHA for 4617e90
1 file changed
src/custom/CatalogDetail/SocialSharePopper.tsx
@@ -30,7 +30,7 @@ interface SocialSharePopperProps {
30
showShareAction: boolean;
31
handleShare: () => void;
32
isVisibilityEnabled: boolean;
33
- handleVisibilityChange: () => void;
+ handleVisibilityChange: (visibility: VIEW_VISIBILITY) => void;
34
}
35
36
const SocialSharePopper: React.FC<SocialSharePopperProps> = ({
@@ -63,7 +63,7 @@ const SocialSharePopper: React.FC<SocialSharePopperProps> = ({
63
<CopyShareIconWrapper style={{ marginBottom: '2rem' }}>
64
<VisibilityChipMenu
65
value={details?.visibility as VIEW_VISIBILITY}
66
- onChange={handleVisibilityChange}
+ onChange={(value) => handleVisibilityChange(value as VIEW_VISIBILITY)}
67
enabled={isVisibilityEnabled}
68
options={[
69
[VIEW_VISIBILITY.PUBLIC, PublicIcon],
0 commit comments