From eb9ea2876ef5db8e94c9a852c035c8ce0940a96c Mon Sep 17 00:00:00 2001 From: David Lechner Date: Tue, 21 Dec 2021 18:08:26 -0600 Subject: [PATCH] toolbar: remove unuse buttonRef in ActionButton --- src/toolbar/ActionButton.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/toolbar/ActionButton.tsx b/src/toolbar/ActionButton.tsx index 41e75573..e6a75bca 100644 --- a/src/toolbar/ActionButton.tsx +++ b/src/toolbar/ActionButton.tsx @@ -4,7 +4,7 @@ import { Button, IRef, Intent, Spinner, useHotkeys } from '@blueprintjs/core'; import { Tooltip2 } from '@blueprintjs/popover2'; import { useI18n } from '@shopify/react-i18n'; -import React, { useMemo, useRef } from 'react'; +import React, { useMemo } from 'react'; import { tooltipDelay } from '../app/constants'; import { TooltipId } from './i18n'; import en from './i18n.en.json'; @@ -31,8 +31,6 @@ export interface ActionButtonProps { } const ActionButton: React.FC = (props) => { - const buttonRef = useRef