diff --git a/src/toolbar/ActionButton.tsx b/src/toolbar/ActionButton.tsx index 1d29396b..86a6fca9 100644 --- a/src/toolbar/ActionButton.tsx +++ b/src/toolbar/ActionButton.tsx @@ -3,14 +3,14 @@ import { Button, - IRef, Intent, Spinner, SpinnerSize, + mergeRefs, useHotkeys, } from '@blueprintjs/core'; import { Tooltip2 } from '@blueprintjs/popover2'; -import React, { useEffect, useMemo, useState } from 'react'; +import React, { RefObject, useEffect, useMemo, useState } from 'react'; import { tooltipDelay } from '../app/constants'; const smallScreenThreshold = 700; @@ -30,6 +30,8 @@ export interface ActionButtonProps { readonly showProgress?: boolean; /** The progress value (0 to 1) or undefined for indeterminate progress. */ readonly progress?: number; + /** Reference to the