diff --git a/.eslintignore b/.eslintignore index 2b837830b..b4c56fa2d 100644 --- a/.eslintignore +++ b/.eslintignore @@ -239,15 +239,7 @@ src/Explorer/Controls/Notebook/NotebookTerminalComponent.tsx src/Explorer/Controls/NotebookViewer/NotebookMetadataComponent.tsx src/NotebookViewer/NotebookViewer.tsx src/Explorer/Controls/NotebookViewer/NotebookViewerComponent.tsx -src/Explorer/Controls/QueriesGridReactComponent/QueriesGridComponent.tsx -src/Explorer/Controls/QueriesGridReactComponent/QueriesGridComponentAdapter.tsx -src/Explorer/Controls/ResizeSensorReactComponent/ResizeSensorComponent.tsx -src/Explorer/Controls/Spark/ClusterSettingsComponent.tsx -src/Explorer/Controls/Spark/ClusterSettingsComponentAdapter.tsx -src/Explorer/Controls/Tabs/TabComponent.tsx -src/Explorer/Controls/TreeComponent/TreeComponent.test.tsx src/Explorer/Controls/TreeComponent/TreeComponent.tsx -src/Explorer/Graph/GraphExplorerComponent/EditorNeighborsComponent.tsx src/Explorer/Graph/GraphExplorerComponent/EditorNodePropertiesComponent.test.tsx src/Explorer/Graph/GraphExplorerComponent/EditorNodePropertiesComponent.tsx src/Explorer/Graph/GraphExplorerComponent/GraphExplorer.test.tsx diff --git a/src/Explorer/Controls/QueriesGridReactComponent/QueriesGridComponent.tsx b/src/Explorer/Controls/QueriesGridReactComponent/QueriesGridComponent.tsx index a32c9bcd3..3c3ef24b7 100644 --- a/src/Explorer/Controls/QueriesGridReactComponent/QueriesGridComponent.tsx +++ b/src/Explorer/Controls/QueriesGridReactComponent/QueriesGridComponent.tsx @@ -30,7 +30,7 @@ import * as DataModels from "../../../Contracts/DataModels"; import { Action } from "../../../Shared/Telemetry/TelemetryConstants"; import * as TelemetryProcessor from "../../../Shared/Telemetry/TelemetryProcessor"; -const title: string = "Open Saved Queries"; +const title = "Open Saved Queries"; export interface QueriesGridComponentProps { queriesClient: QueriesClient; @@ -196,9 +196,9 @@ export class QueriesGridComponent extends React.Component { + onRender: (query: Query) => { const buttonProps: IButtonProps = { iconProps: { iconName: "More", @@ -214,19 +214,15 @@ export class QueriesGridComponent extends React.Component | React.KeyboardEvent, menuItem: any) => { + onClick: () => { this.props.onQuerySelect(query); }, }, { key: "Delete", text: "Delete query", - onClick: async ( - event: React.MouseEvent | React.KeyboardEvent, - menuItem: any - ) => { + onClick: async () => { if (window.confirm("Are you sure you want to delete this query?")) { - const container = window.dataExplorer; const startKey: number = TelemetryProcessor.traceStart(Action.DeleteSavedQuery, { dataExplorerArea: Constants.Areas.ContextualPane, paneTitle: title, diff --git a/src/Explorer/Controls/Tabs/TabComponent.tsx b/src/Explorer/Controls/Tabs/TabComponent.tsx index f1fd76bf8..7936321d0 100644 --- a/src/Explorer/Controls/Tabs/TabComponent.tsx +++ b/src/Explorer/Controls/Tabs/TabComponent.tsx @@ -58,7 +58,7 @@ export class TabComponent extends React.Component { as="span" className={className} role="presentation" - onActivated={(e) => this.setActiveTab(index)} + onActivated={() => this.setActiveTab(index)} aria-label={`Select tab: ${tab.title}`} > {tab.title} diff --git a/src/Explorer/Graph/GraphExplorerComponent/EditorNeighborsComponent.tsx b/src/Explorer/Graph/GraphExplorerComponent/EditorNeighborsComponent.tsx index 5b4470054..c77fc2852 100644 --- a/src/Explorer/Graph/GraphExplorerComponent/EditorNeighborsComponent.tsx +++ b/src/Explorer/Graph/GraphExplorerComponent/EditorNeighborsComponent.tsx @@ -4,12 +4,12 @@ */ import * as React from "react"; -import { NeighborVertexBasicInfo, EditedEdges, GraphNewEdgeData, PossibleVertex } from "./GraphExplorer"; -import * as GraphUtil from "./GraphUtil"; -import * as InputTypeaheadComponent from "../../Controls/InputTypeahead/InputTypeaheadComponent"; -import DeleteIcon from "../../../../images/delete.svg"; import AddPropertyIcon from "../../../../images/Add-property.svg"; +import DeleteIcon from "../../../../images/delete.svg"; import { AccessibleElement } from "../../Controls/AccessibleElement/AccessibleElement"; +import * as InputTypeaheadComponent from "../../Controls/InputTypeahead/InputTypeaheadComponent"; +import { EditedEdges, GraphNewEdgeData, NeighborVertexBasicInfo, PossibleVertex } from "./GraphExplorer"; +import * as GraphUtil from "./GraphUtil"; export interface EditorNeighborsComponentProps { isSource: boolean; @@ -83,11 +83,11 @@ export class EditorNeighborsComponent extends React.Component - Delete this.removeAddedEdgeToNeighbor(index)} /> + Delete this.removeAddedEdgeToNeighbor(index)} />