use consistent tooltip delay

This commit is contained in:
David Lechner
2021-01-15 11:08:04 -06:00
parent a66331840c
commit f54beab97f
10 changed files with 25 additions and 10 deletions
+2
View File
@@ -5,6 +5,7 @@ import { Button, Intent, Position, Tooltip } from '@blueprintjs/core';
import { WithI18nProps, withI18n } from '@shopify/react-i18n';
import React from 'react';
import Dropzone, { FileRejection } from 'react-dropzone';
import { tooltipDelay } from '../settings/ui';
import { TooltipId } from './button-i18n';
import en from './button-i18n.en.json';
@@ -81,6 +82,7 @@ class OpenFileButton extends React.Component<Props> {
<Tooltip
content={this.props.i18n.translate(this.props.tooltip)}
position={Position.BOTTOM}
hoverOpenDelay={tooltipDelay}
>
<Button
{...getRootProps()}