mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-08 03:57:31 +00:00
fixed typescript strict hoverableCell and InputParameter file
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import * as React from "react";
|
|
||||||
import { AppState, ContentRef, selectors } from "@nteract/core";
|
import { AppState, ContentRef, selectors } from "@nteract/core";
|
||||||
|
import * as React from "react";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import * as NteractUtil from "../NTeractUtil";
|
import * as NteractUtil from "../NTeractUtil";
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
|
import { ContentRef } from "@nteract/core";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { Dispatch } from "redux";
|
import { Dispatch } from "redux";
|
||||||
|
|
||||||
import { ContentRef } from "@nteract/core";
|
|
||||||
import * as actions from "../../NotebookComponent/actions";
|
import * as actions from "../../NotebookComponent/actions";
|
||||||
|
|
||||||
interface ComponentProps {
|
interface ComponentProps {
|
||||||
@@ -29,12 +28,9 @@ class HoverableCell extends React.Component<ComponentProps & DispatchProps> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const mapDispatchToProps = (
|
const mapDispatchToProps = (dispatch: Dispatch, { id }: { id: string }): DispatchProps => ({
|
||||||
dispatch: Dispatch,
|
|
||||||
{ id, contentRef }: { id: string; contentRef: ContentRef }
|
|
||||||
): DispatchProps => ({
|
|
||||||
hover: () => dispatch(actions.setHoveredCell({ cellId: id })),
|
hover: () => dispatch(actions.setHoveredCell({ cellId: id })),
|
||||||
unHover: () => dispatch(actions.setHoveredCell({ cellId: undefined })),
|
unHover: () => dispatch(actions.setHoveredCell({ cellId: "" })),
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(undefined, mapDispatchToProps)(HoverableCell);
|
export default connect(undefined, mapDispatchToProps)(HoverableCell);
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export interface InputParameterProps {
|
|||||||
onDeleteParamKeyPress?: () => void;
|
onDeleteParamKeyPress?: () => void;
|
||||||
onAddNewParamKeyPress?: () => void;
|
onAddNewParamKeyPress?: () => void;
|
||||||
onParamValueChange: (event: React.FormEvent<HTMLElement>, newInput?: string) => void;
|
onParamValueChange: (event: React.FormEvent<HTMLElement>, newInput?: string) => void;
|
||||||
onParamKeyChange: (event: React.FormEvent<HTMLElement>, selectedParam: IDropdownOption) => void;
|
onParamKeyChange: (event: React.FormEvent<HTMLElement>, selectedParam?: IDropdownOption) => void;
|
||||||
paramValue: string;
|
paramValue: string;
|
||||||
selectedKey: string | number;
|
selectedKey: string | number;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
"noUnusedParameters": true
|
"noUnusedParameters": true
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
"./src/Explorer/Panes/ExecuteSprocParamsPane/InputParameter.tsx",
|
||||||
"./src/AuthType.ts",
|
"./src/AuthType.ts",
|
||||||
"./src/Bindings/ReactBindingHandler.ts",
|
"./src/Bindings/ReactBindingHandler.ts",
|
||||||
"./src/Common/ArrayHashMap.ts",
|
"./src/Common/ArrayHashMap.ts",
|
||||||
@@ -57,6 +58,7 @@
|
|||||||
"./src/Explorer/Notebook/NotebookRenderer/PromptContent.tsx",
|
"./src/Explorer/Notebook/NotebookRenderer/PromptContent.tsx",
|
||||||
"./src/Explorer/Notebook/NotebookRenderer/decorators/CellCreator.tsx",
|
"./src/Explorer/Notebook/NotebookRenderer/decorators/CellCreator.tsx",
|
||||||
"./src/Explorer/Notebook/NotebookRenderer/decorators/CellLabeler.tsx",
|
"./src/Explorer/Notebook/NotebookRenderer/decorators/CellLabeler.tsx",
|
||||||
|
"./src/Explorer/Notebook/NotebookRenderer/decorators/HoverableCell.tsx",
|
||||||
"./src/Explorer/Notebook/NotebookUtil.ts",
|
"./src/Explorer/Notebook/NotebookUtil.ts",
|
||||||
"./src/Explorer/OpenFullScreen.test.tsx",
|
"./src/Explorer/OpenFullScreen.test.tsx",
|
||||||
"./src/Explorer/OpenFullScreen.tsx",
|
"./src/Explorer/OpenFullScreen.tsx",
|
||||||
|
|||||||
Reference in New Issue
Block a user