This commit is contained in:
Nathan Bierema 2020-10-17 11:47:17 -04:00
parent 480b7a4201
commit 1895d22370
2 changed files with 4 additions and 2 deletions

View File

@ -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);
}; };

View File

@ -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 (