Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Oct 4, 2023
1 parent b4424c1 commit 8e83b97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const printErrorDetails = (error: any): void => {
} else if ((error as any).stats && (error as any).stats.compilation.errors) {
(error as any).stats.compilation.errors.forEach((e: any) => logger.plain(e));
} else {
logger.error(error);
logger.error(error as any);
}
} else if (error.compilation?.errors) {
error.compilation.errors.forEach((e: any) => logger.plain(e));
Expand Down
4 changes: 2 additions & 2 deletions code/ui/components/src/components/Zoom/ZoomIFrame.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { RefObject, ReactElement } from 'react';
import { Component } from 'react';
import React, { Component } from 'react';

export type IZoomIFrameProps = {
scale: number;
Expand Down Expand Up @@ -57,6 +57,6 @@ export class ZoomIFrame extends Component<IZoomIFrameProps> {

render() {
const { children } = this.props;
return children;
return <>{children}</>;
}
}

0 comments on commit 8e83b97

Please sign in to comment.