File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ interface SocialSharePopperProps {
30
30
showShareAction : boolean ;
31
31
handleShare : ( ) => void ;
32
32
isVisibilityEnabled : boolean ;
33
- handleVisibilityChange : ( ) => void ;
33
+ handleVisibilityChange : ( visibility : VIEW_VISIBILITY ) => void ;
34
34
}
35
35
36
36
const SocialSharePopper : React . FC < SocialSharePopperProps > = ( {
@@ -63,7 +63,7 @@ const SocialSharePopper: React.FC<SocialSharePopperProps> = ({
63
63
< CopyShareIconWrapper style = { { marginBottom : '2rem' } } >
64
64
< VisibilityChipMenu
65
65
value = { details ?. visibility as VIEW_VISIBILITY }
66
- onChange = { handleVisibilityChange }
66
+ onChange = { ( value ) => handleVisibilityChange ( value as VIEW_VISIBILITY ) }
67
67
enabled = { isVisibilityEnabled }
68
68
options = { [
69
69
[ VIEW_VISIBILITY . PUBLIC , PublicIcon ] ,
You can’t perform that action at this time.
0 commit comments