Skip to content

Commit

Permalink
feat(SharePopover)!: remove deprecated handleMetrika prop (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
amje committed Jun 28, 2023
1 parent e287ac6 commit cd75e46
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/components/SharePopover/SharePopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ export interface SharePopoverProps extends ShareListProps, Partial<SharePopoverD
customIcon?: SVGIconData;
/** icon title */
buttonTitle?: string | React.ReactNode;
/**
* @deprecated use onClick instead
* metrika traking registration handler
* */
handleMetrika?: () => void;
/** custom onClick handler */
onClick?: (event?: React.MouseEvent<HTMLSpanElement>) => void;
/** custom copy link button title */
Expand Down Expand Up @@ -154,11 +149,7 @@ export class SharePopover extends React.PureComponent<SharePopoverInnerProps> {
}

private handleClick = async (event: React.MouseEvent<HTMLSpanElement>) => {
const {url, title, text, useWebShareApi, handleMetrika, onClick} = this.props;

if (handleMetrika) {
handleMetrika();
}
const {url, title, text, useWebShareApi, onClick} = this.props;

if (onClick) {
onClick(event);
Expand Down

0 comments on commit cd75e46

Please sign in to comment.