This commit is contained in:
seb
2026-10-09 21:29:45 +02:00
parent ac677dd5e3
commit 8a042ef9f2

View File

@@ -2,7 +2,6 @@ import { PureComponent } from 'react';
import IconButton from '@mui/material/IconButton';
import ListItem from '@mui/material/ListItem';
import DeleteOutlinedIcon from '@mui/icons-material/DeleteOutlined';
import CopyrightIcon from '@mui/icons-material/Copyright';
import ImageSearchIcon from '@mui/icons-material/ImageSearch';
import SingleLineTextEdit from 'dashgui/SingleLineTextEdit';
import { enqueueSnackbar } from 'notistack';
@@ -105,7 +104,16 @@ class ArtikelMarke extends PureComponent {
<BrandThumb
brand={brand}
size={40}
fallback={<CopyrightIcon sx={{ color: 'text.secondary', fontSize: 20, flexShrink: 0 }} />}
fallback={
<IconButton
aria-label={`Logo für „${name}" suchen`}
disabled={disabled}
onClick={this.handleSearchLogo}
sx={{ width: 40, height: 40, flexShrink: 0 }}
>
<ImageSearchIcon sx={{ fontSize: 24 }} />
</IconButton>
}
/>
<SingleLineTextEdit
size="small"
@@ -117,25 +125,15 @@ class ArtikelMarke extends PureComponent {
onKeyDown={this.handleKeyDown}
sx={{ flex: 1 }}
/>
<span>
<IconButton
size="small"
aria-label={`Logo für „${name}" suchen`}
disabled={disabled}
onClick={this.handleSearchLogo}
>
<ImageSearchIcon fontSize="small" />
</IconButton>
</span>
<span>
<IconButton
edge="end"
size="small"
aria-label={`„${name}" löschen`}
disabled={disabled}
onClick={this.handleDelete}
sx={{ width: 40, height: 40 }}
>
<DeleteOutlinedIcon fontSize="small" />
<DeleteOutlinedIcon sx={{ fontSize: 24 }} />
</IconButton>
</span>
</ListItem>