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