Drop tile titles and tileKey from article detail boxes.

This commit is contained in:
seb
2026-08-05 17:36:18 +02:00
parent 4352a02d4e
commit 0c12d99987
6 changed files with 2 additions and 21 deletions

View File

@@ -2,7 +2,6 @@ import { Component } from 'react';
import Box from '@mui/material/Box';
import Typography from '@mui/material/Typography';
import { PanelTile } from '../../panels';
import { PANEL_TILE_KEYS } from '../../../theme';
import { formatStock } from '../../../pages/artikel/searchFormat';
class PanelValue extends Component {
@@ -30,12 +29,7 @@ export default class ArticleViewStock extends Component {
render() {
const { article: articleData } = this.props;
return (
<PanelTile
wide={1}
tileKey={PANEL_TILE_KEYS.stock}
title="Bestand"
minHeight={SECOND_ROW_MIN_HEIGHT}
>
<PanelTile wide={1} minHeight={SECOND_ROW_MIN_HEIGHT}>
<PanelValue>
{articleData.stock != null ? formatStock(articleData.stock) : null}
</PanelValue>