diff --git a/src/components/article/ArticleTileTab.jsx b/src/components/article/ArticleTileTab.jsx index 7be266f..afe1ee7 100644 --- a/src/components/article/ArticleTileTab.jsx +++ b/src/components/article/ArticleTileTab.jsx @@ -42,6 +42,19 @@ import { YELLOW_PANEL, } from '../../colors'; +function SupplierTabIcon(props) { + const { sx, ...rest } = props; + return ( + + ); +} + const ALWAYS_TABS = [ { id: ARTICLE_TAB.history, @@ -54,7 +67,7 @@ const ALWAYS_TABS = [ id: ARTICLE_TAB.supplier, label: 'Supplier', color: GREEN_PANEL, - Icon: LocalShippingIcon, + Icon: SupplierTabIcon, help: 'Zugeordnete Lieferanten, Einkaufspreise und Lieferanten-Artikelnummern', }, { diff --git a/src/components/article/ArticleUnifyDialog.jsx b/src/components/article/ArticleUnifyDialog.jsx index 60c7209..db39c81 100644 --- a/src/components/article/ArticleUnifyDialog.jsx +++ b/src/components/article/ArticleUnifyDialog.jsx @@ -1017,7 +1017,7 @@ export default class ArticleUnifyDialog extends Component { return ( } + icon={} label={`${s.company || s.supplierName || 'Lieferant'} (Lief.-ArtNr: ${s.sku || '–'}, EK: ${formatPrice(s.netPrice) || '–'})`} size="small" color={isChecked ? 'primary' : 'default'} @@ -1055,7 +1055,7 @@ export default class ArticleUnifyDialog extends Component { return ( } + icon={} label={`${s.company || s.supplierName || 'Lieferant'} (Lief.-ArtNr: ${s.sku || '–'}, EK: ${formatPrice(s.netPrice) || '–'})`} size="small" color={isChecked ? 'secondary' : 'default'} diff --git a/src/components/article/tabs/ArticleSupplierTab.jsx b/src/components/article/tabs/ArticleSupplierTab.jsx index 898fab4..665c15b 100644 --- a/src/components/article/tabs/ArticleSupplierTab.jsx +++ b/src/components/article/tabs/ArticleSupplierTab.jsx @@ -227,7 +227,7 @@ export default class ArticleSupplierTab extends PureComponent { textAlign: 'center', }} > - + Lieferanten sind für Vaterartikel deaktiviert diff --git a/src/nav.js b/src/nav.js index b16f161..57d3dda 100644 --- a/src/nav.js +++ b/src/nav.js @@ -55,6 +55,7 @@ class DeliveryNavIcon extends PureComponent { return createElement(LocalShippingIcon, { ...rest, sx: [ + { transform: 'scaleX(-1)' }, ...(Array.isArray(sx) ? sx : sx ? [sx] : []), (theme) => (hasDraft ? { color: theme.nav?.itemActiveAccent || NAV_ITEM_ACTIVE_ACCENT } : null), ],