Remove search field from add product dialog

This commit is contained in:
beatz174-bit
2025-12-01 15:59:33 +10:00
parent cc26940737
commit 7be6ee1d32
-9
View File
@@ -8,13 +8,11 @@ import {
DialogContent, DialogContent,
DialogTitle, DialogTitle,
IconButton, IconButton,
InputAdornment,
MenuItem, MenuItem,
Stack, Stack,
TextField, TextField,
} from '@mui/material'; } from '@mui/material';
import CloseIcon from '@mui/icons-material/Close'; import CloseIcon from '@mui/icons-material/Close';
import SearchIcon from '@mui/icons-material/Search';
import { v4 as uuidv4 } from 'uuid'; import { v4 as uuidv4 } from 'uuid';
import { useDatabase } from '../context/DBProvider'; import { useDatabase } from '../context/DBProvider';
import { BarcodeScannerView } from './BarcodeScannerView'; import { BarcodeScannerView } from './BarcodeScannerView';
@@ -277,13 +275,6 @@ export const AddProductDialog = ({
error={!!nameError} error={!!nameError}
helperText={nameError || ' '} helperText={nameError || ' '}
fullWidth fullWidth
InputProps={{
startAdornment: (
<InputAdornment position="start">
<SearchIcon />
</InputAdornment>
),
}}
data-testid="select-add-product-category" data-testid="select-add-product-category"
/> />