remove incorrect use of ThunkDispatch

This commit is contained in:
David Lechner
2020-05-22 19:54:48 -05:00
committed by David Lechner
parent 1898787eb5
commit 2a0cba80b8
2 changed files with 2 additions and 8 deletions
+1 -4
View File
@@ -1,14 +1,11 @@
import { connect } from 'react-redux';
import { AnyAction } from 'redux';
import { ThunkDispatch } from 'redux-thunk';
import { Dispatch } from 'redux';
import { flashFirmware } from '../actions/bootloader';
import * as notification from '../actions/notification';
import { RootState } from '../reducers';
import { BootloaderConnectionState } from '../reducers/bootloader';
import OpenFileButton, { OpenFileButtonProps } from './OpenFileButton';
type Dispatch = ThunkDispatch<{}, {}, AnyAction>;
type StateProps = Pick<OpenFileButtonProps, 'enabled'>;
type DispatchProps = Pick<OpenFileButtonProps, 'onFile' | 'onReject'>;
type OwnProps = Pick<OpenFileButtonProps, 'id'>;
+1 -4
View File
@@ -1,12 +1,9 @@
import React from 'react';
import Toast from 'react-bootstrap/Toast';
import { connect } from 'react-redux';
import { Action } from 'redux';
import { ThunkDispatch } from 'redux-thunk';
import { Dispatch } from 'redux';
import * as notification from '../actions/notification';
type Dispatch = ThunkDispatch<{}, {}, Action>;
interface DispatchProps {
onClose: () => void;
}