Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
yadavshubham01 committed Dec 22, 2024
1 parent d29b0d6 commit 3cf5439
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export default {
category: propsCategory.KEYBOARD_PROPS,
},
},
hideClearButton:{
hideClearButton: {
control: {
type: 'boolean',
},
Expand Down Expand Up @@ -268,7 +268,7 @@ Default.storyName = 'Default';
export const SearchInputWithClearButtonHidden = SearchInputTemplate.bind({});
SearchInputWithClearButtonHidden.storyName = 'SearchInput with Clear Button Hidden';
SearchInputWithClearButtonHidden.args = {
hideClearButton:true,
hideClearButton: true,
};
export const SearchInputHelpText = SearchInputTemplate.bind({});
SearchInputHelpText.storyName = 'SearchInput with Help Text';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ type SearchInputCommonProps = Pick<
* @default true
*/
showSearchIcon?: boolean;
/**
/**
* Toggle the visibility of the clear button.
*
* @default false
*/
hideClearButton?: boolean;
hideClearButton?: boolean;
} & StyledPropsBlade;

/*
Expand Down Expand Up @@ -97,7 +97,7 @@ type SearchInputPropsWithLabel = {

type SearchInputProps = (SearchInputPropsWithA11yLabel | SearchInputPropsWithLabel) &
SearchInputCommonProps & {
hideClearButton?: boolean;
hideClearButton?: boolean;
};

// need to do this to tell TS to infer type as SearchInput of React Native and make it believe that `ref.current.clear()` exists
Expand Down Expand Up @@ -131,9 +131,8 @@ const _SearchInput: React.ForwardRefRenderFunction<BladeElementRef, SearchInputP
showSearchIcon = true,

hideClearButton = false,

...rest

...rest
},
ref,
): ReactElement => {
Expand Down

0 comments on commit 3cf5439

Please sign in to comment.