Skip to content

Commit 96b830c

Browse files
committed
changed NERAutocomplete style to Native Select
1 parent d0b73c9 commit 96b830c

2 files changed

Lines changed: 6 additions & 14 deletions

File tree

src/frontend/src/components/NERAutocomplete.tsx

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff 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

src/frontend/src/pages/FinancePage/ReimbursementRequestForm/ReimbursementFormView.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Delete } from '@mui/icons-material';
22
import {
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
}}

0 commit comments

Comments
 (0)