u
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import { Component } from 'react';
|
||||
import Box from '@mui/material/Box';
|
||||
import Chip from '@mui/material/Chip';
|
||||
import IconButton from '@mui/material/IconButton';
|
||||
import LayersOutlinedIcon from '@mui/icons-material/LayersOutlined';
|
||||
import {
|
||||
TINT_CHIP,
|
||||
TINT_PILL_ACTIVE,
|
||||
@@ -50,7 +48,7 @@ export class TaxRatePills extends Component {
|
||||
|
||||
export class PriceTaxRow extends Component {
|
||||
render() {
|
||||
const { rates, selected, onSelectTax, readOnly, onOpenTiers } = this.props;
|
||||
const { rates, selected, onSelectTax, readOnly } = this.props;
|
||||
return (
|
||||
<Box
|
||||
sx={{
|
||||
@@ -67,20 +65,6 @@ export class PriceTaxRow extends Component {
|
||||
onSelect={onSelectTax}
|
||||
readOnly={readOnly}
|
||||
/>
|
||||
<IconButton
|
||||
type="button"
|
||||
size="small"
|
||||
aria-label="Staffelpreise"
|
||||
disabled={readOnly}
|
||||
onClick={readOnly ? undefined : onOpenTiers}
|
||||
sx={{
|
||||
p: 0.5,
|
||||
visibility: readOnly ? 'hidden' : 'visible',
|
||||
pointerEvents: readOnly ? 'none' : 'auto',
|
||||
}}
|
||||
>
|
||||
<LayersOutlinedIcon sx={{ fontSize: 28 }} />
|
||||
</IconButton>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user