Add Files to TypeScript Strict (#776)

Co-authored-by: Steve Faulkner <[email protected]>
This commit is contained in:
Sunil Kumar Yadav
2021-05-12 19:56:48 -05:00
committed by GitHub
co-authored by Steve Faulkner
parent 2d506f0312
commit 8e6d274b11
2 changed files with 13 additions and 9 deletions
@@ -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") {