mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
fix unused state props type
This commit is contained in:
committed by
David Lechner
parent
7a4c05a89a
commit
9e0a567172
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user