mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
remove incorrect use of ThunkDispatch
This commit is contained in:
committed by
David Lechner
parent
1898787eb5
commit
2a0cba80b8
@@ -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,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user