Replace panel tileKey with a direct color prop.
Drop theme panelTiles keys and the ArticleView update callback wiring.
This commit is contained in:
@@ -141,6 +141,7 @@ export default class ArticleViewBrand extends Component {
|
||||
<EditablePanelTile
|
||||
wide={1}
|
||||
minHeight={SECOND_ROW_MIN_HEIGHT}
|
||||
color="#e9d5ff"
|
||||
value={value}
|
||||
onSave={this.handleSave}
|
||||
isDirty={brandDraftDirty}
|
||||
|
||||
@@ -105,6 +105,7 @@ export default class ArticleViewEANs extends Component {
|
||||
<EditablePanelTile
|
||||
wide={1}
|
||||
minHeight={SECOND_ROW_MIN_HEIGHT}
|
||||
color="#e2e8f0"
|
||||
contentAlignItems="flex-start"
|
||||
value={value}
|
||||
onSave={this.handleSave}
|
||||
|
||||
@@ -39,7 +39,7 @@ export default class ArticleViewLists extends Component {
|
||||
render() {
|
||||
const { article: articleData } = this.props;
|
||||
return (
|
||||
<PanelTile wide={1} minHeight={200}>
|
||||
<PanelTile wide={1} minHeight={200} color="#fbcfe8">
|
||||
<RelationLine label="Vaterartikel" active={articleData.childCount > 0}>
|
||||
{articleData.childCount}
|
||||
</RelationLine>
|
||||
|
||||
@@ -239,6 +239,7 @@ export default class ArticleViewName extends Component {
|
||||
wide={3}
|
||||
minHeight={0}
|
||||
sx={headerTileSx}
|
||||
color="#ffffff"
|
||||
value={value}
|
||||
onSave={this.handleSave}
|
||||
isDirty={draftDirty}
|
||||
|
||||
@@ -506,6 +506,7 @@ export default class ArticleViewPrice extends Component {
|
||||
<EditablePanelTile
|
||||
wide={1}
|
||||
minHeight={SECOND_ROW_MIN_HEIGHT}
|
||||
color="#bfdbfe"
|
||||
contentAlignItems="flex-start"
|
||||
value={priceValue}
|
||||
onSave={this.handleSave}
|
||||
|
||||
@@ -29,7 +29,7 @@ export default class ArticleViewStock extends Component {
|
||||
render() {
|
||||
const { article: articleData } = this.props;
|
||||
return (
|
||||
<PanelTile wide={1} minHeight={SECOND_ROW_MIN_HEIGHT}>
|
||||
<PanelTile wide={1} minHeight={SECOND_ROW_MIN_HEIGHT} color="#bbf7d0">
|
||||
<PanelValue>
|
||||
{articleData.stock != null ? formatStock(articleData.stock) : null}
|
||||
</PanelValue>
|
||||
|
||||
Reference in New Issue
Block a user