Skip to content

Commit 6519f36

Browse files
committed
♻️ Refactor
1 parent d0499ae commit 6519f36

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"react-star",
1818
"star"
1919
],
20-
"homepage": "",
20+
"homepage": "https://github.com/Bunlong/react-star",
2121
"main": "dist/react-star.js",
2222
"module": "dist/react-star.es.js",
2323
"jsnext:main": "dist/react-star.es.js",

src/Icon.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ class Icon extends React.PureComponent<Props> {
6969

7070
return (
7171
<span
72-
style={index === 0 ? Object.assign({}, style, { marginLeft: 0 }) : style}
72+
style={
73+
index === 0 ? Object.assign({}, style, { marginLeft: 0 }) : style
74+
}
7375
onClick={handleMouseClick}
7476
onMouseMove={handleMouseMove}
7577
onTouchMove={handleMouseMove}

0 commit comments

Comments
 (0)