fix(ui): resolve tooltip conditional rendering
- Replace separate delay and disabled props with conditional title - Ensure tooltip only shows content when not disabled - Maintain consistent tooltip behavior across the application - Prevent potential rendering errors on disabled tooltips - Improve code maintainability for tooltip components Signed-off-by: Shekar Siri <sshekarsiri@gmail.com>
This commit is contained in:
parent
0af941e543
commit
66edf44f8b
1 changed files with 3 additions and 3 deletions
|
|
@ -296,9 +296,9 @@ function SessionItem(props: RouteComponentProps & Props) {
|
|||
>
|
||||
<div>
|
||||
<Tooltip
|
||||
delay={0}
|
||||
disabled={isDisabled}
|
||||
title={timeTooltipContent}
|
||||
// delay={0}
|
||||
// disabled={isDisabled}
|
||||
title={isDisabled ? '' : timeTooltipContent}
|
||||
className="w-fit !block"
|
||||
>
|
||||
<TextEllipsis
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue