Fix: Lint error. (#16172)

### What problem does this PR solve?

Fix: Lint error.
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2026-06-18 13:14:18 +08:00
committed by GitHub
parent ea70663f09
commit a9021528c3
13 changed files with 59 additions and 61 deletions

View File

@@ -84,7 +84,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
!!prefix && prefixWidth ? `${prefixWidth}px` : '',
paddingInlineEnd: isPasswordInput
? '40px'
: !!suffix
: suffix
? `${suffixWidth}px`
: '',
}}
@@ -155,9 +155,6 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
Input.displayName = 'Input';
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface ExpandedInputProps extends InputProps {}
const ExpandedInput = Input;
const SearchInput = (props: InputProps) => {

View File

@@ -64,7 +64,7 @@ export interface SegmentedProps extends Omit<
const Segmented = React.forwardRef<HTMLDivElement, SegmentedProps>(
supportsCssAnchor
? (
? function Segmented(
{
options,
value,
@@ -77,7 +77,7 @@ const Segmented = React.forwardRef<HTMLDivElement, SegmentedProps>(
buttonSize = 'default',
},
ref,
) => {
) {
const anchorNamePrefix = useId().replace(/:/g, '');
const [selectedValue, setSelectedValue] = React.useState<
SegmentedValue | undefined
@@ -143,7 +143,7 @@ const Segmented = React.forwardRef<HTMLDivElement, SegmentedProps>(
</div>
);
}
: (
: function Segmented(
{
options,
value,
@@ -156,7 +156,7 @@ const Segmented = React.forwardRef<HTMLDivElement, SegmentedProps>(
buttonSize = 'default',
},
ref,
) => {
) {
const [selectedValue, setSelectedValue] = React.useState<
SegmentedValue | undefined
>(value);