Skip to content

Commit

Permalink
chore: apply auto-fix changes
Browse files Browse the repository at this point in the history
  • Loading branch information
LimeWub authored and atom-ci-actions[bot] committed Sep 18, 2024
1 parent f6a6aae commit 36c1273
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
22 changes: 15 additions & 7 deletions lib/src/components/input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,20 @@ export type InputProps = Omit<
}

export const Input: React.ForwardRefExoticComponent<InputProps> =
React.forwardRef(({ className, size = 'md', state, disabled, css, ...rest }, ref) => {
return (
<InputBackground size={size} disabled={disabled} state={state} css={css} className={className}>
<InputText size={size} ref={ref} disabled={disabled} {...rest} />
</InputBackground>
)
})
React.forwardRef(
({ className, size = 'md', state, disabled, css, ...rest }, ref) => {
return (
<InputBackground
size={size}
disabled={disabled}
state={state}
css={css}
className={className}
>
<InputText size={size} ref={ref} disabled={disabled} {...rest} />
</InputBackground>
)
}
)

Input.displayName = 'Input'
12 changes: 4 additions & 8 deletions lib/src/components/search-input/SearchInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,11 @@ const StyledIcon = styled(Icon, {
}
})


const StyledSearchInputText = styled(InputText, {
'&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button':
{
display: 'none'
}
{
display: 'none'
}
})

export const SearchInput: React.ForwardRefExoticComponent<SearchInputProps> =
Expand Down Expand Up @@ -146,10 +145,7 @@ export const SearchInput: React.ForwardRefExoticComponent<SearchInputProps> =
}

return (
<InputBackground css={{ position: 'relative', ...css }}
size={size}

>
<InputBackground css={{ position: 'relative', ...css }} size={size}>
<StyledSearchInputText
ref={setInputElRef}
size={size}
Expand Down

0 comments on commit 36c1273

Please sign in to comment.