mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-15 02:54:07 +00:00
update to blueprintjs 5.x
This commit is contained in:
committed by
David Lechner
parent
2fc3bea48f
commit
65e5627568
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user