fix: enforce no-leaked-conditional-rendering as error and fix violations (#31262)

Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
This commit is contained in:
byteforge
2026-01-20 10:08:59 -05:00
committed by GitHub
parent 8f949d503a
commit 8056768106
59 changed files with 80 additions and 80 deletions

View File

@ -109,7 +109,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(({
disabled={disabled}
{...props}
/>
{showClearIcon && value && !disabled && !destructive && (
{!!(showClearIcon && value && !disabled && !destructive) && (
<div
className={cn('group absolute right-2 top-1/2 -translate-y-1/2 cursor-pointer p-[1px]')}
onClick={onClear}