Add quick add product icon to pick list search
This commit is contained in:
1 parent
7eb6c5d5d2
commit
17854652f6
1 file changed
+21
-1
@@ -5,15 +5,18 @@ import {
|
|||||||
Container,
|
Container,
|
||||||
FormControl,
|
FormControl,
|
||||||
FormControlLabel,
|
FormControlLabel,
|
||||||
|
IconButton,
|
||||||
InputAdornment,
|
InputAdornment,
|
||||||
Radio,
|
Radio,
|
||||||
RadioGroup,
|
RadioGroup,
|
||||||
Stack,
|
Stack,
|
||||||
TextField,
|
TextField,
|
||||||
|
Tooltip,
|
||||||
Typography,
|
Typography,
|
||||||
} from '@mui/material';
|
} from '@mui/material';
|
||||||
|
import AddCircleOutlineIcon from '@mui/icons-material/AddCircleOutline';
|
||||||
import SearchIcon from '@mui/icons-material/Search';
|
import SearchIcon from '@mui/icons-material/Search';
|
||||||
import { useParams, useNavigate } from 'react-router-dom';
|
import { Link as RouterLink, useParams, useNavigate } from 'react-router-dom';
|
||||||
import { useEffect, useMemo, useState } from 'react';
|
import { useEffect, useMemo, useState } from 'react';
|
||||||
import { v4 as uuidv4 } from 'uuid';
|
import { v4 as uuidv4 } from 'uuid';
|
||||||
import { useAreas, usePickItems, usePickList, useProducts } from '../hooks/dataHooks';
|
import { useAreas, usePickItems, usePickList, useProducts } from '../hooks/dataHooks';
|
||||||
@@ -191,6 +194,23 @@ export const ActivePickListScreen = () => {
|
|||||||
{params.InputProps.startAdornment}
|
{params.InputProps.startAdornment}
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
|
endAdornment: (
|
||||||
|
<>
|
||||||
|
{params.InputProps.endAdornment}
|
||||||
|
<InputAdornment position="end">
|
||||||
|
<Tooltip title="Add a new product">
|
||||||
|
<IconButton
|
||||||
|
aria-label="Add product"
|
||||||
|
component={RouterLink}
|
||||||
|
to="/products"
|
||||||
|
size="small"
|
||||||
|
>
|
||||||
|
<AddCircleOutlineIcon />
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
|
</InputAdornment>
|
||||||
|
</>
|
||||||
|
),
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in new issue
Block a user