mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 08:30:02 +03:00
Merge 136ce3e45e
into a4382ecb9c
This commit is contained in:
commit
fd05f192a3
5
.changeset/neat-ducks-do.md
Normal file
5
.changeset/neat-ducks-do.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@redux-devtools/app': minor
|
||||
---
|
||||
|
||||
Enable lock button for non-Redux connections
|
|
@ -52,9 +52,7 @@ export default class TopButtons extends Component<Props> {
|
|||
<Toolbar borderPosition="bottom">
|
||||
{features.pause && <RecordButton paused={isPaused} />}
|
||||
{features.persist && <PersistButton />}
|
||||
{features.lock && (
|
||||
<LockButton locked={isLocked} disabled={options.lib !== 'redux'} />
|
||||
)}
|
||||
{features.lock && <LockButton locked={isLocked} />}
|
||||
<Divider />
|
||||
<Button
|
||||
title="Reset to the state you created the store with"
|
||||
|
|
|
@ -8,7 +8,6 @@ import { Dispatch } from 'redux';
|
|||
type DispatchProps = ReturnType<typeof mapDispatchToProps>;
|
||||
interface OwnProps {
|
||||
locked: boolean | undefined;
|
||||
disabled: boolean;
|
||||
}
|
||||
type Props = DispatchProps & OwnProps;
|
||||
|
||||
|
@ -21,7 +20,6 @@ class LockButton extends Component<Props> {
|
|||
return (
|
||||
<Button
|
||||
tooltipPosition="bottom"
|
||||
disabled={this.props.disabled}
|
||||
mark={this.props.locked && 'base0D'}
|
||||
title={this.props.locked ? 'Unlock changes' : 'Lock changes'}
|
||||
onClick={this.props.lockChanges}
|
||||
|
|
Loading…
Reference in New Issue
Block a user