u
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Component } from 'react';
|
||||
import { Component, PureComponent } from 'react';
|
||||
import Autocomplete from '@mui/material/Autocomplete';
|
||||
import TextField from '@mui/material/TextField';
|
||||
import Typography from '@mui/material/Typography';
|
||||
@@ -71,7 +71,7 @@ class BrandEdit extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
export default class ArticleViewBrand extends Component {
|
||||
export default class ArticleViewBrand extends PureComponent {
|
||||
static contextType = StorageManagerContext;
|
||||
|
||||
constructor(props) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component } from 'react';
|
||||
import { Component, PureComponent } from 'react';
|
||||
import Autocomplete from '@mui/material/Autocomplete';
|
||||
import TextField from '@mui/material/TextField';
|
||||
import Typography from '@mui/material/Typography';
|
||||
@@ -83,7 +83,7 @@ class EansEdit extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
export default class ArticleViewEANs extends Component {
|
||||
export default class ArticleViewEANs extends PureComponent {
|
||||
static contextType = StorageManagerContext;
|
||||
|
||||
handleSave = async (draft) => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component } from 'react';
|
||||
import { Component, PureComponent } from 'react';
|
||||
import { Link as RouterLink } from 'react-router-dom';
|
||||
import Link from '@mui/material/Link';
|
||||
import Typography from '@mui/material/Typography';
|
||||
@@ -35,7 +35,7 @@ class RelationLine extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
export default class ArticleViewLists extends Component {
|
||||
export default class ArticleViewLists extends PureComponent {
|
||||
render() {
|
||||
const { article: articleData } = this.props;
|
||||
return (
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component } from 'react';
|
||||
import { Component, PureComponent } from 'react';
|
||||
import { EditablePanelTile } from '../../panels';
|
||||
import SingleLineTextEdit from '../../SingleLineTextEdit';
|
||||
import { StorageManagerContext } from '../../../api/storageManagerContext';
|
||||
@@ -224,7 +224,7 @@ class NameEdit extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
export default class ArticleViewName extends Component {
|
||||
export default class ArticleViewName extends PureComponent {
|
||||
static contextType = StorageManagerContext;
|
||||
|
||||
constructor(props) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component } from 'react';
|
||||
import { Component, PureComponent } from 'react';
|
||||
import Box from '@mui/material/Box';
|
||||
import InputAdornment from '@mui/material/InputAdornment';
|
||||
import TextField from '@mui/material/TextField';
|
||||
@@ -364,7 +364,7 @@ class PriceEdit extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
export default class ArticleViewPrice extends Component {
|
||||
export default class ArticleViewPrice extends PureComponent {
|
||||
static contextType = StorageManagerContext;
|
||||
|
||||
constructor(props) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component } from 'react';
|
||||
import { Component, PureComponent } from 'react';
|
||||
import Box from '@mui/material/Box';
|
||||
import Typography from '@mui/material/Typography';
|
||||
import { PanelTile } from '../../panels';
|
||||
@@ -25,7 +25,7 @@ class PanelValue extends Component {
|
||||
|
||||
const SECOND_ROW_MIN_HEIGHT = 220;
|
||||
|
||||
export default class ArticleViewStock extends Component {
|
||||
export default class ArticleViewStock extends PureComponent {
|
||||
render() {
|
||||
const { article: articleData } = this.props;
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user