diff --git a/src/components/FlashButton.tsx b/src/components/FlashButton.tsx index 01ff63a0..04f10166 100644 --- a/src/components/FlashButton.tsx +++ b/src/components/FlashButton.tsx @@ -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; type DispatchProps = Pick; type OwnProps = Pick; diff --git a/src/components/Notification.tsx b/src/components/Notification.tsx index 512911aa..3d2189e9 100644 --- a/src/components/Notification.tsx +++ b/src/components/Notification.tsx @@ -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; }