mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 01:11:25 +00:00
fixed typescript strict of accordianComponent.tsx and schemaAnalyser (#804)
This commit is contained in:
committed by
GitHub
parent
735a81db47
commit
d06e27a037
@@ -3,11 +3,10 @@
|
||||
*/
|
||||
|
||||
import * as React from "react";
|
||||
import * as Constants from "../../../Common/Constants";
|
||||
import AnimateHeight from "react-animate-height";
|
||||
|
||||
import TriangleDownIcon from "../../../../images/Triangle-down.svg";
|
||||
import TriangleRightIcon from "../../../../images/Triangle-right.svg";
|
||||
import * as Constants from "../../../Common/Constants";
|
||||
|
||||
export interface AccordionComponentProps {}
|
||||
|
||||
@@ -27,12 +26,12 @@ export interface AccordionItemComponentProps {
|
||||
}
|
||||
|
||||
interface AccordionItemComponentState {
|
||||
isExpanded: boolean;
|
||||
isExpanded?: boolean;
|
||||
}
|
||||
|
||||
export class AccordionItemComponent extends React.Component<AccordionItemComponentProps, AccordionItemComponentState> {
|
||||
private static readonly durationMS = 500;
|
||||
private isExpanded: boolean;
|
||||
private isExpanded?: boolean;
|
||||
|
||||
constructor(props: AccordionItemComponentProps) {
|
||||
super(props);
|
||||
@@ -79,7 +78,7 @@ export class AccordionItemComponent extends React.Component<AccordionItemCompone
|
||||
);
|
||||
}
|
||||
|
||||
private onHeaderClick = (event: React.MouseEvent<HTMLDivElement>): void => {
|
||||
private onHeaderClick = (_event: React.MouseEvent<HTMLDivElement>): void => {
|
||||
this.setState({ isExpanded: !this.state.isExpanded });
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user