Add Files to TypeScript Strict (#776)

Co-authored-by: Steve Faulkner <southpolesteve@gmail.com>
This commit is contained in:
Sunil Kumar Yadav
2021-05-13 06:26:48 +05:30
committed by GitHub
parent 2d506f0312
commit 8e6d274b11
2 changed files with 13 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ export const PanelInfoErrorComponent: React.FunctionComponent<PanelInfoErrorProp
linkText,
openNotificationConsole,
}: PanelInfoErrorProps): JSX.Element => {
let icon: JSX.Element;
let icon: JSX.Element = <Icon iconName="InfoSolid" className="panelLargeInfoIcon" aria-label="Infomation" />;
if (messageType === "error") {
icon = <Icon iconName="StatusErrorFull" className="panelErrorIcon" aria-label="error" />;
} else if (messageType === "warning") {