u
This commit is contained in:
@@ -890,6 +890,7 @@ export default class ArticleSearch extends PureComponent {
|
||||
return (
|
||||
<TextInput
|
||||
{...params}
|
||||
label={label}
|
||||
autoFocus={autoFocus}
|
||||
placeholder={placeholder || ''}
|
||||
InputProps={{
|
||||
@@ -904,6 +905,7 @@ export default class ArticleSearch extends PureComponent {
|
||||
return (
|
||||
<TextInput
|
||||
{...params}
|
||||
label={label}
|
||||
autoFocus={autoFocus}
|
||||
placeholder={placeholder || ''}
|
||||
slotProps={{
|
||||
|
||||
@@ -7,7 +7,6 @@ import DialogActions from '@mui/material/DialogActions';
|
||||
import Table from '@mui/material/Table';
|
||||
import TableBody from '@mui/material/TableBody';
|
||||
import TableCell from '@mui/material/TableCell';
|
||||
import TableHead from '@mui/material/TableHead';
|
||||
import TableRow from '@mui/material/TableRow';
|
||||
import Typography from '@mui/material/Typography';
|
||||
import Chip from '@mui/material/Chip';
|
||||
@@ -29,7 +28,6 @@ import { article as articleApi } from '../../api';
|
||||
import brandAutomat from '../../automats/brandAutomat';
|
||||
import categoryAutomat from '../../automats/categoryAutomat';
|
||||
import { formatPrice } from '../../utils/price';
|
||||
import { LIGHT_4 } from '../../colors';
|
||||
|
||||
export default class ArticleUnifyDialog extends Component {
|
||||
constructor(props) {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { PureComponent } from 'react';
|
||||
import { Link as RouterLink } from 'react-router-dom';
|
||||
import Autocomplete from '@mui/material/Autocomplete';
|
||||
import Box from '@mui/material/Box';
|
||||
import Button from '@mui/material/Button';
|
||||
import Checkbox from '@mui/material/Checkbox';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getCategoryBreadcrumbs, ROOT_CATEGORY_NAME } from '../../utils/categoryUtils';
|
||||
import { getCategoryBreadcrumbs } from '../../utils/categoryUtils';
|
||||
|
||||
export function parseFilter(filterStr) {
|
||||
if (!filterStr) return [];
|
||||
|
||||
@@ -123,7 +123,6 @@ export default class ArticleSettingsTab extends Component {
|
||||
|
||||
const isFather = isArticleFather(articleData);
|
||||
const isStueckliste = isArticleStueckliste(articleData);
|
||||
const cannotUnify = isFather || isStueckliste;
|
||||
const unifyDisabledReason = isFather
|
||||
? 'Ein Vaterartikel kann nicht vereint werden.'
|
||||
: isStueckliste
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useEffect } from 'react';
|
||||
import { useNavigate, useSearchParams } from 'react-router-dom';
|
||||
import { buildSearchUrl, queryFromParams, readArtikelQuery } from './artikelQuery';
|
||||
import { buildSearchUrl, readArtikelQuery } from './artikelQuery';
|
||||
|
||||
export default function withSearchParams(Wrapped) {
|
||||
function SearchParamsWrapper(props) {
|
||||
@@ -18,6 +18,7 @@ export default function withSearchParams(Wrapped) {
|
||||
buildSearchUrl(stored.target, stored.filter ?? '', stored.offset ?? 0),
|
||||
{ replace: true },
|
||||
);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user