mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-22 09:36:43 +03:00
remove lock prop from LockButton
This commit is contained in:
parent
2f5a234638
commit
f019024b21
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user