i have below button where i am showing the tool tip when you hover on that button based on conditions
import { Button,Tooltip} from 'antd';
<Tooltip
placement="top"
title={
!isRevitMode
? 'You must be in Revit to link the model.'
: [
state.isReadOnly
? 'You do not have rights to sync data, as project admin to provide you access.'
: ''
]
}
>
<Button type="primary" disabled={!isRevitMode || state.isReadOnly}>
Link model with project
</Button>
</Tooltip>
at the moment first it will check revit mode and i am showing message if not in revitmode
and then after i am checking for isReadOnly
flag and showing relevant information on tooltip text. I need to show empty tool tip text some how when this conditions are met how can i show that empty.
Could any one please let me know how can i achieve this or any other way? many thanks in advance