fix(ui) - tooltip text
This commit is contained in:
parent
5693896a99
commit
728917f0d6
2 changed files with 2 additions and 2 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
|
|
@ -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) : () => {}}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue