remove lock prop from LockButton

This commit is contained in:
EskiMojo14 2024-05-06 15:37:05 +01:00
parent 2f5a234638
commit f019024b21

View File

@ -8,7 +8,6 @@ import { Dispatch } from 'redux';
type DispatchProps = ReturnType<typeof mapDispatchToProps>; type DispatchProps = ReturnType<typeof mapDispatchToProps>;
interface OwnProps { interface OwnProps {
locked: boolean | undefined; locked: boolean | undefined;
disabled: boolean;
} }
type Props = DispatchProps & OwnProps; type Props = DispatchProps & OwnProps;
@ -21,7 +20,6 @@ class LockButton extends Component<Props> {
return ( return (
<Button <Button
tooltipPosition="bottom" tooltipPosition="bottom"
disabled={this.props.disabled}
mark={this.props.locked && 'base0D'} mark={this.props.locked && 'base0D'}
title={this.props.locked ? 'Unlock changes' : 'Lock changes'} title={this.props.locked ? 'Unlock changes' : 'Lock changes'}
onClick={this.props.lockChanges} onClick={this.props.lockChanges}