diff --git a/src/Explorer/Notebook/NotebookComponent/VirtualCommandBarComponent.tsx b/src/Explorer/Notebook/NotebookComponent/VirtualCommandBarComponent.tsx index 9c2953cc7..3c28ba9da 100644 --- a/src/Explorer/Notebook/NotebookComponent/VirtualCommandBarComponent.tsx +++ b/src/Explorer/Notebook/NotebookComponent/VirtualCommandBarComponent.tsx @@ -1,5 +1,5 @@ -import * as React from "react"; import { AppState, ContentRef, selectors } from "@nteract/core"; +import * as React from "react"; import { connect } from "react-redux"; import * as NteractUtil from "../NTeractUtil"; diff --git a/src/Explorer/Notebook/NotebookRenderer/decorators/HoverableCell.tsx b/src/Explorer/Notebook/NotebookRenderer/decorators/HoverableCell.tsx index 710d3c755..014a3d203 100644 --- a/src/Explorer/Notebook/NotebookRenderer/decorators/HoverableCell.tsx +++ b/src/Explorer/Notebook/NotebookRenderer/decorators/HoverableCell.tsx @@ -1,8 +1,7 @@ +import { ContentRef } from "@nteract/core"; import React from "react"; import { connect } from "react-redux"; import { Dispatch } from "redux"; - -import { ContentRef } from "@nteract/core"; import * as actions from "../../NotebookComponent/actions"; interface ComponentProps { @@ -29,12 +28,9 @@ class HoverableCell extends React.Component { } } -const mapDispatchToProps = ( - dispatch: Dispatch, - { id, contentRef }: { id: string; contentRef: ContentRef } -): DispatchProps => ({ +const mapDispatchToProps = (dispatch: Dispatch, { id }: { id: string }): DispatchProps => ({ hover: () => dispatch(actions.setHoveredCell({ cellId: id })), - unHover: () => dispatch(actions.setHoveredCell({ cellId: undefined })), + unHover: () => dispatch(actions.setHoveredCell({ cellId: "" })), }); export default connect(undefined, mapDispatchToProps)(HoverableCell); diff --git a/src/Explorer/Panes/ExecuteSprocParamsPane/InputParameter.tsx b/src/Explorer/Panes/ExecuteSprocParamsPane/InputParameter.tsx index 521ebc966..69846df69 100644 --- a/src/Explorer/Panes/ExecuteSprocParamsPane/InputParameter.tsx +++ b/src/Explorer/Panes/ExecuteSprocParamsPane/InputParameter.tsx @@ -26,7 +26,7 @@ export interface InputParameterProps { onDeleteParamKeyPress?: () => void; onAddNewParamKeyPress?: () => void; onParamValueChange: (event: React.FormEvent, newInput?: string) => void; - onParamKeyChange: (event: React.FormEvent, selectedParam: IDropdownOption) => void; + onParamKeyChange: (event: React.FormEvent, selectedParam?: IDropdownOption) => void; paramValue: string; selectedKey: string | number; } diff --git a/tsconfig.strict.json b/tsconfig.strict.json index 7a8971ce1..99a0417ed 100644 --- a/tsconfig.strict.json +++ b/tsconfig.strict.json @@ -8,6 +8,7 @@ "noUnusedParameters": true }, "files": [ + "./src/Explorer/Panes/ExecuteSprocParamsPane/InputParameter.tsx", "./src/AuthType.ts", "./src/Bindings/ReactBindingHandler.ts", "./src/Common/ArrayHashMap.ts", @@ -57,6 +58,7 @@ "./src/Explorer/Notebook/NotebookRenderer/PromptContent.tsx", "./src/Explorer/Notebook/NotebookRenderer/decorators/CellCreator.tsx", "./src/Explorer/Notebook/NotebookRenderer/decorators/CellLabeler.tsx", + "./src/Explorer/Notebook/NotebookRenderer/decorators/HoverableCell.tsx", "./src/Explorer/Notebook/NotebookUtil.ts", "./src/Explorer/OpenFullScreen.test.tsx", "./src/Explorer/OpenFullScreen.tsx", @@ -139,4 +141,4 @@ "src/Terminal/**/*", "src/Utils/arm/**/*" ] -} +} \ No newline at end of file