From cd75e4633a8209e6d4788e5d9cf50df563a7bdb8 Mon Sep 17 00:00:00 2001 From: Andrey Morozov Date: Mon, 19 Jun 2023 16:15:59 +0300 Subject: [PATCH] feat(SharePopover)!: remove deprecated `handleMetrika` prop (#739) --- src/components/SharePopover/SharePopover.tsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/components/SharePopover/SharePopover.tsx b/src/components/SharePopover/SharePopover.tsx index b1601852c..cdc79caa4 100644 --- a/src/components/SharePopover/SharePopover.tsx +++ b/src/components/SharePopover/SharePopover.tsx @@ -43,11 +43,6 @@ export interface SharePopoverProps extends ShareListProps, Partial void; /** custom onClick handler */ onClick?: (event?: React.MouseEvent) => void; /** custom copy link button title */ @@ -154,11 +149,7 @@ export class SharePopover extends React.PureComponent { } private handleClick = async (event: React.MouseEvent) => { - const {url, title, text, useWebShareApi, handleMetrika, onClick} = this.props; - - if (handleMetrika) { - handleMetrika(); - } + const {url, title, text, useWebShareApi, onClick} = this.props; if (onClick) { onClick(event);