Skip to content

Commit 4a495a8

Browse files
➖ removing unused dependencies
1 parent 8ba2ab1 commit 4a495a8

File tree

3 files changed

+1244
-9528
lines changed

3 files changed

+1244
-9528
lines changed

package.json

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tiny-skeleton-loader-react",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"description": "zero dependency, ultra lightweight (1KB gzipped) skeleton loader component for react",
55
"author": "harshzalavadiya",
66
"license": "MIT",
@@ -18,29 +18,22 @@
1818
},
1919
"dependencies": {},
2020
"peerDependencies": {
21-
"prop-types": "^15.7.2",
22-
"react": "^16.10.2",
23-
"react-dom": "^16.10.2"
21+
"react": "^16.12.0",
22+
"react-dom": "^16.12.0"
2423
},
2524
"devDependencies": {
26-
"@types/react": "^16.9.6",
27-
"@types/react-dom": "^16.9.2",
28-
"babel-core": "^6.26.3",
29-
"babel-runtime": "^6.26.0",
30-
"cross-env": "^6.0.3",
31-
"gh-pages": "^2.1.1",
25+
"@types/react": "^16.9.17",
26+
"@types/react-dom": "^16.9.4",
3227
"react": "^16.4.1",
3328
"react-dom": "^16.4.1",
34-
"react-scripts-ts": "^3.1.0",
35-
"rollup": "^1.24.0",
36-
"rollup-plugin-babel": "^4.3.3",
29+
"rollup": "^1.27.14",
3730
"rollup-plugin-commonjs": "^10.1.0",
3831
"rollup-plugin-node-resolve": "^5.2.0",
3932
"rollup-plugin-peer-deps-external": "^2.2.0",
4033
"rollup-plugin-postcss": "^2.0.3",
41-
"rollup-plugin-typescript2": "^0.25.2",
42-
"rollup-plugin-url": "^3.0.0",
43-
"typescript": "^3.6.4"
34+
"rollup-plugin-typescript2": "^0.25.3",
35+
"rollup-plugin-url": "^3.0.1",
36+
"typescript": "^3.7.4"
4437
},
4538
"files": [
4639
"dist"

src/index.tsx

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,19 @@ function SkeletonLoader({
1212
style = {}
1313
}) {
1414
return (
15-
<>
16-
<div
17-
className={css.skeleton}
18-
style={{
19-
width,
20-
height,
21-
background,
22-
borderRadius: circle ? "50%" : radius,
23-
display: block ? "block" : "inline-block",
24-
...style
25-
}}
26-
>
27-
&zwnj;
28-
</div>
29-
</>
15+
<div
16+
className={css.skeleton}
17+
style={{
18+
width,
19+
height,
20+
background,
21+
borderRadius: circle ? "50%" : radius,
22+
display: block ? "block" : "inline-block",
23+
...style
24+
}}
25+
>
26+
&zwnj;
27+
</div>
3028
);
3129
}
3230

0 commit comments

Comments
 (0)