update to blueprintjs 5.x

This commit is contained in:
David Lechner
2023-06-28 14:42:55 -05:00
committed by David Lechner
parent 2fc3bea48f
commit 65e5627568
57 changed files with 369 additions and 889 deletions
+3 -3
View File
@@ -7,9 +7,9 @@ import {
Intent,
Spinner,
SpinnerSize,
Tooltip,
useHotkeys,
} from '@blueprintjs/core';
import { Tooltip2 } from '@blueprintjs/popover2';
import { mergeProps } from '@react-aria/utils';
import classNames from 'classnames';
import React, { useCallback, useEffect, useMemo, useState } from 'react';
@@ -96,7 +96,7 @@ const ActionButton: React.FunctionComponent<ActionButtonProps> = ({
}, [enabled, onAction]);
return (
<Tooltip2
<Tooltip
content={tooltip}
placement="bottom"
hoverOpenDelay={tooltipDelay}
@@ -109,7 +109,7 @@ const ActionButton: React.FunctionComponent<ActionButtonProps> = ({
id={id}
aria-disabled={enabled === false}
aria-label={label}
elementRef={tooltipTargetRef as React.Ref<HTMLButtonElement>}
ref={tooltipTargetRef}
{...mergeProps(tooltipTargetProps, {
className: classNames(
'pb-toolbar-action-button',