mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
stash
This commit is contained in:
parent
480b7a4201
commit
1895d22370
|
@ -1,6 +1,8 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { withTheme } from 'styled-components';
|
import { withTheme } from 'styled-components';
|
||||||
|
import { LiftedAction } from 'redux-devtools-instrument';
|
||||||
|
import { Action } from 'redux';
|
||||||
import getMonitor from '../utils/getMonitor';
|
import getMonitor from '../utils/getMonitor';
|
||||||
|
|
||||||
class DevTools extends Component {
|
class DevTools extends Component {
|
||||||
|
@ -52,7 +54,7 @@ class DevTools extends Component {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
dispatch = (action) => {
|
dispatch = (action: LiftedAction<unknown, Action<unknown>, unknown>) => {
|
||||||
this.props.dispatch(action);
|
this.props.dispatch(action);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ export const monitors = [
|
||||||
{ value: 'ChartMonitor', name: 'Chart' },
|
{ value: 'ChartMonitor', name: 'Chart' },
|
||||||
];
|
];
|
||||||
|
|
||||||
export default function getMonitor({ monitor }) {
|
export default function getMonitor({ monitor }: { monitor: string }) {
|
||||||
switch (monitor) {
|
switch (monitor) {
|
||||||
case 'LogMonitor':
|
case 'LogMonitor':
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user