File tree Expand file tree Collapse file tree
pages/FinancePage/ReimbursementRequestForm Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,13 +44,9 @@ const NERAutocomplete: React.FC<NERAutocompleteProps> = ({
4444 height : '40px' ,
4545 backgroundColor : theme . palette . background . default ,
4646 width : '100%' ,
47+ border : '2px black' ,
4748 borderRadius : '25px' ,
48- border : 0 ,
49- '.MuiOutlinedInput-notchedOutline' : {
50- borderColor : 'black' ,
51- borderRadius : '25px'
52- } ,
53- '&.Mui-focused .MuiOutlinedInput-notchedOutline' : {
49+ '&.Mui-focused' : {
5450 borderColor : 'red'
5551 } ,
5652 ...sx
@@ -61,12 +57,7 @@ const NERAutocomplete: React.FC<NERAutocompleteProps> = ({
6157 < TextField
6258 { ...params }
6359 InputProps = { {
64- ...params . InputProps ,
65- startAdornment : (
66- < InputAdornment position = "start" >
67- < SearchIcon />
68- </ InputAdornment >
69- )
60+ ...params . InputProps
7061 } }
7162 placeholder = { placeholder }
7263 required
Original file line number Diff line number Diff line change 11import { Delete } from '@mui/icons-material' ;
22import {
3+ Autocomplete ,
34 FormControl ,
45 FormHelperText ,
56 FormLabel ,
@@ -197,14 +198,14 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
197198 const mappedExpenseTypes = allExpenseTypes . map ( expenseTypesToAutocomplete ) ;
198199 return (
199200 < NERAutocomplete
201+ id = { 'expenseType' }
202+ size = "small"
200203 options = { mappedExpenseTypes }
201204 value = { mappedExpenseTypes . find ( ( expenseType ) => expenseType . id === value ) || null }
202205 placeholder = "Expense Type"
203206 onChange = { ( _event , newValue ) => {
204207 newValue ? onChange ( newValue . id ) : onChange ( '' ) ;
205208 } }
206- id = { 'expenseType' }
207- size = "small"
208209 />
209210 ) ;
210211 } }
You can’t perform that action at this time.
0 commit comments