Skip to content

Commit

Permalink
Fix ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Nov 21, 2019
1 parent 57ef9ea commit 747a923
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions packages/component/src/SendBox/SuggestedAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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 (
<div aria-hidden={ariaHidden} className={classNames(suggestedActionStyleSet + '', SUGGESTED_ACTION_CSS + '')}>
<button disabled={disabled} onClick={handleClick} type="button">
Expand Down

0 comments on commit 747a923

Please sign in to comment.