fix unused state props type

This commit is contained in:
David Lechner
2020-06-12 21:46:00 -05:00
committed by David Lechner
parent 7a4c05a89a
commit 9e0a567172
+2 -3
View File
@@ -10,7 +10,7 @@ import ActionButton, { ActionButtonProps } from './ActionButton';
import { TooltipId } from './button';
import docsIcon from './images/run.svg'; // FIXME: need proper icon
type StateProps = {};
type StateProps = undefined;
type DispatchProps = Pick<ActionButtonProps, 'onAction'>;
type OwnProps = Pick<ActionButtonProps, 'id'>;
@@ -19,14 +19,13 @@ const mapDispatchToProps = (dispatch: Dispatch): DispatchProps => ({
});
const mergeProps = (
stateProps: StateProps,
_stateProps: StateProps,
dispatchProps: DispatchProps,
ownProps: OwnProps,
): ActionButtonProps => ({
tooltip: TooltipId.Docs,
icon: docsIcon,
...ownProps,
...stateProps,
...dispatchProps,
});