Resolve Lint errors in NotificationConsoleComponent.ts (#527)

This commit is contained in:
Hardikkumar Nai
2021-04-13 04:36:30 +05:30
committed by GitHub
parent 02e6d8442b
commit 05932e1d38
3 changed files with 10 additions and 12 deletions

View File

@@ -77,7 +77,7 @@ export class NotificationConsoleComponent extends React.Component<
public componentDidUpdate(
prevProps: NotificationConsoleComponentProps,
prevState: NotificationConsoleComponentState
) {
): void {
const currentHeaderStatus = NotificationConsoleComponent.extractHeaderStatus(this.props.consoleData);
if (
@@ -98,7 +98,7 @@ export class NotificationConsoleComponent extends React.Component<
}
}
public setElememntRef = (element: HTMLElement) => {
public setElememntRef = (element: HTMLElement): void => {
this.consoleHeaderElement = element;
};
@@ -117,7 +117,7 @@ export class NotificationConsoleComponent extends React.Component<
className="notificationConsoleHeader"
id="notificationConsoleHeader"
ref={this.setElememntRef}
onClick={(event: React.MouseEvent<HTMLDivElement>) => this.expandCollapseConsole()}
onClick={() => this.expandCollapseConsole()}
onKeyDown={(event: React.KeyboardEvent<HTMLDivElement>) => this.onExpandCollapseKeyPress(event)}
tabIndex={0}
>