fix(ui) - tooltip text

This commit is contained in:
Shekar Siri 2023-02-23 11:03:47 +01:00 committed by Taha Yassine Kraiem
parent 5693896a99
commit 728917f0d6
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ function DashboardOptions(props: Props) {
{ icon: 'text-paragraph', text: `${!isTitlePresent ? 'Add' : 'Edit'} Description`, onClick: () => editHandler(false) },
{ icon: 'users', text: 'Visibility & Access', onClick: editHandler },
{ icon: 'trash', text: 'Delete', onClick: deleteHandler },
{ icon: 'pdf-download', text: 'Download Report', onClick: renderReport, disabled: !isEnterprise, tooltipTitle: {ENTERPRISE_REQUEIRED} }
{ icon: 'pdf-download', text: 'Download Report', onClick: renderReport, disabled: !isEnterprise, tooltipTitle: ENTERPRISE_REQUEIRED }
]
return (

View file

@ -68,7 +68,7 @@ export default class ItemMenu extends React.PureComponent<Props> {
{items
.filter(({ hidden }) => !hidden)
.map(({ onClick, text, icon, disabled = false, tooltipTitle = '' }) => (
<Tooltip disabled={!disabled} title={tooltipTitle}>
<Tooltip disabled={!disabled} title={tooltipTitle} delay={0}>
<div
key={text}
onClick={!disabled ? this.onClick(onClick) : () => {}}