Skip to content

Commit 8107f5c

Browse files
priley86redallen
authored andcommitted
fix(tsconfig): avatar tsx change (#1535)
1 parent 2b898fb commit 8107f5c

File tree

2 files changed

+11
-24
lines changed

2 files changed

+11
-24
lines changed

packages/patternfly-4/react-core/src/components/Avatar/Avatar.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
21
import styles from '@patternfly/patternfly/components/Avatar/avatar.css';
32
import { css } from '@patternfly/react-styles';
4-
import React, { DetailedHTMLProps, ImgHTMLAttributes } from 'react';
5-
3+
import * as React from 'react';
64

75
const defaultProps = {
86
className: '',
@@ -12,7 +10,8 @@ const defaultProps = {
1210
/**
1311
* Column properties.
1412
*/
15-
export interface AvatarProps extends DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>{
13+
export interface AvatarProps
14+
extends React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement> {
1615
/** Additional classes added to the Avatar. */
1716
className?: string;
1817
/** Attribute that specifies the URL of the image for the Avatar. */
@@ -21,7 +20,7 @@ export interface AvatarProps extends DetailedHTMLProps<ImgHTMLAttributes<HTMLIma
2120
alt: string;
2221
}
2322

24-
const Avatar:React.FunctionComponent<AvatarProps> = (props) => (
23+
const Avatar: React.FunctionComponent<AvatarProps> = props => (
2524
<img {...props} className={css(styles.avatar, props.className)} />
2625
);
2726

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,23 @@
11
{
22
"compilerOptions": {
33
"outDir": "../dist/js",
4-
"allowSyntheticDefaultImports": true,
5-
"esModuleInterop": true,
4+
"allowSyntheticDefaultImports": false,
5+
"esModuleInterop": false,
66
"baseUrl": ".",
77
"moduleResolution": "node",
88
"declaration": true,
99
"emitDeclarationOnly": true,
1010
"skipLibCheck": true,
1111
"sourceMap": false,
12-
"lib": [
13-
"es2017",
14-
"dom"
15-
],
12+
"lib": ["es2017", "dom"],
1613
"noEmit": false,
1714
"module": "commonjs",
1815
"jsx": "react",
1916
"target": "es5",
2017
"paths": {
21-
"*": [
22-
"../dist/esm/*"
23-
]
18+
"*": ["../dist/esm/*"]
2419
}
2520
},
26-
"include": [
27-
"./**/*"
28-
],
29-
"exclude": [
30-
"./**/*.d.ts",
31-
"./**/**.test.tsx",
32-
"./**/**.test.ts",
33-
"./**/examples/**"
34-
]
35-
}
21+
"include": ["./**/*"],
22+
"exclude": ["./**/*.d.ts", "./**/**.test.tsx", "./**/**.test.ts", "./**/examples/**"]
23+
}

0 commit comments

Comments
 (0)