From 747a92380195b656c91c7880dc5757d7ac7729d3 Mon Sep 17 00:00:00 2001 From: William Wong Date: Thu, 21 Nov 2019 13:22:48 -0800 Subject: [PATCH] Fix ESLint --- packages/component/src/SendBox/SuggestedAction.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/packages/component/src/SendBox/SuggestedAction.js b/packages/component/src/SendBox/SuggestedAction.js index 00204de654..8427c62801 100644 --- a/packages/component/src/SendBox/SuggestedAction.js +++ b/packages/component/src/SendBox/SuggestedAction.js @@ -31,15 +31,7 @@ const connectSuggestedAction = (...selectors) => ...selectors ); -const SuggestedAction = ({ - 'aria-hidden': ariaHidden, - buttonText, - displayText, - image, - text, - type, - value -}) => { +const SuggestedAction = ({ 'aria-hidden': ariaHidden, buttonText, displayText, image, text, type, value }) => { const [_, setSuggestedActions] = useSuggestedActions(); const [{ suggestedAction: suggestedActionStyleSet }] = useStyleSet(); const [disabled] = useDisabled(); @@ -50,11 +42,6 @@ const SuggestedAction = ({ type === 'openUrl' && setSuggestedActions([]); }, [displayText, performCardAction, setSuggestedActions, text, type, value]); - const handleClick = useCallback(() => { - performCardAction({ displayText, text, type, value }); - type === 'openUrl' && setSuggestedActions([]); - }, [displayText, performCardAction, setSuggestedActions, text, type, value]); - return (