u
This commit is contained in:
@@ -186,7 +186,7 @@ export default class OnlinePrinterIcons extends PureComponent {
|
||||
gap: { xs: 0.5, lg: 1 },
|
||||
}}
|
||||
>
|
||||
{onlinePrinters.map((p) => {
|
||||
{onlinePrinters.map((p, index) => {
|
||||
const hasError = Boolean(
|
||||
p.error || p.open || p.live?.errors?.other || p.live?.errors?.headOpen,
|
||||
);
|
||||
@@ -203,7 +203,9 @@ export default class OnlinePrinterIcons extends PureComponent {
|
||||
|
||||
return (
|
||||
<IconButton
|
||||
key={p.id || p.serial || index}
|
||||
onClick={(e) => this.handleOpenMenu(e, p)}
|
||||
title={tooltipTitle}
|
||||
sx={(theme) => ({
|
||||
p: 0,
|
||||
width: 32,
|
||||
|
||||
@@ -201,7 +201,7 @@ export default class ArticleLabelTab extends PureComponent {
|
||||
{templates.map((t) => {
|
||||
const isSelected = t.id === selectedTemplateId;
|
||||
return (
|
||||
<Grid item xs={12} sm={6} md={4} key={t.id}>
|
||||
<Grid size={{ xs: 12, sm: 6, md: 4 }} key={t.id}>
|
||||
<Paper
|
||||
variant="outlined"
|
||||
onClick={() => this.setState({ selectedTemplateId: t.id })}
|
||||
|
||||
Reference in New Issue
Block a user