diff --git a/src/components/SearchInput.tsx b/src/components/SearchInput.tsx index f9564c9a6..8b1d9708f 100644 --- a/src/components/SearchInput.tsx +++ b/src/components/SearchInput.tsx @@ -1,8 +1,7 @@ import { useState } from 'react' -import styled from 'styled-components' import { UseDebouncedSearch } from '~/hooks/useDebouncedSearch' -import { theme } from '~/styles' +import { tw } from '~/styles/utils' import { Icon } from './designSystem' import { TextInput } from './form' @@ -17,8 +16,8 @@ export const SearchInput = ({ className, onChange, placeholder }: SearchInputPro const [localValue, setLocalValue] = useState('') return ( - { @@ -32,12 +31,3 @@ export const SearchInput = ({ className, onChange, placeholder }: SearchInputPro /> ) } - -const TextInputForSearch = styled(TextInput)` - max-width: 240px; - - .MuiInputBase-inputAdornedStart { - height: 40px; - padding-left: ${theme.spacing(3)}; - } -` diff --git a/src/components/creditNote/CreditNoteFormCalculation.tsx b/src/components/creditNote/CreditNoteFormCalculation.tsx index 4146e142f..b133f158d 100644 --- a/src/components/creditNote/CreditNoteFormCalculation.tsx +++ b/src/components/creditNote/CreditNoteFormCalculation.tsx @@ -410,7 +410,8 @@ export const CreditNoteFormCalculation = ({ _get(formikProps.errors, 'payBack.0.value') !== PayBackErrorEnum.maxRefund } > - - { // needed because useAutocomplete expect a DOM onChange listener... inputProps.onChange({ target: { value: newVal } }) searchQuery && searchQuery(newVal) }} - className={className} + className={tw('group/combobox-input', className)} name={name} placeholder={placeholder} label={label} @@ -56,9 +56,12 @@ export const ComboBoxInput = ({ {!disableClearable && (