Add delay to tooltips

[MAILPOET-4744]
This commit is contained in:
David Remer
2022-10-27 08:11:29 +03:00
committed by John Oleksowicz
parent f41423e6a2
commit c8cf00a151

View File

@@ -48,6 +48,10 @@ function ActivateButton({ onClick, label }): JSX.Element {
if (isDeactivating) {
return (
<Tooltip
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// The following error seems to be a mismatch. It claims the 'delay' prop does not exist, but it does.
delay={0}
text={__(
'Editing an active workflow is temporarily unavailable. We are working on introducing this functionality.',
'mailpoet',
@@ -66,6 +70,10 @@ function UpdateButton(): JSX.Element {
return (
<Tooltip
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// The following error seems to be a mismatch. It claims the 'delay' prop does not exist, but it does.
delay={0}
text={__(
'Editing an active workflow is temporarily unavailable. We are working on introducing this functionality.',
'mailpoet',