From 9e0a567172c84d4e1f3a54381cc8f4e220712de5 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Fri, 12 Jun 2020 16:04:06 -0500 Subject: [PATCH] fix unused state props type --- src/components/DocsButton.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/DocsButton.tsx b/src/components/DocsButton.tsx index 4c254726..e1fbd55a 100644 --- a/src/components/DocsButton.tsx +++ b/src/components/DocsButton.tsx @@ -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; type OwnProps = Pick; @@ -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, });