Skip to content

Commit 2bc4ed7

Browse files
committed
run prettier formater and update version
1 parent 20e88c1 commit 2bc4ed7

9 files changed

Lines changed: 30 additions & 19 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-spinners-css",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"private": false,
55
"main": "dist/index.js",
66
"module": "dist/index.js",

src/components/Circle/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import './style.css'
44

55
export default class Circle extends Component {
66
render() {
7-
const { color, size } = this.props;
7+
const { color, size } = this.props
88
return <div className="lds-circle" style={{ background: color, width: size, height: size }}></div>
99
}
1010
}

src/components/Default/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ import PropTypes from 'prop-types'
33
import './style.css'
44

55
export default function Default({ color }) {
6-
const circles = [...Array(12)].map((_, index) => (
7-
<div key={index} style={{ background: `${color}` }} />
8-
));
6+
const circles = [...Array(12)].map((_, index) => <div key={index} style={{ background: `${color}` }} />)
97

10-
return <div className="lds-default">{circles}</div>;
8+
return <div className="lds-default">{circles}</div>
119
}
1210

1311
Default.propTypes = {

src/components/Ellipsis/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default class Ellipsis extends Component {
88
for (let index = 0; index < 4; index++) {
99
div.push(<div key={index} style={{ background: `${this.props.color}` }}></div>)
1010
}
11-
return div;
11+
return div
1212
}
1313

1414
render() {

src/components/Grid/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ import PropTypes from 'prop-types'
33
import './style.css'
44

55
export default function Grid({ color }) {
6-
const circles = [...Array(9)].map((_, index) => (
7-
<div key={index} style={{ background: `${color}` }} />
8-
));
6+
const circles = [...Array(9)].map((_, index) => <div key={index} style={{ background: `${color}` }} />)
97

10-
return <div className="lds-grid">{circles}</div>;
8+
return <div className="lds-grid">{circles}</div>
119
}
1210

1311
Grid.propTypes = {

src/components/Ring/index.js

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,32 @@ import './style.css'
44

55
export default class Ring extends Component {
66
Circles = () => {
7-
const { color, size } = this.props;
7+
const { color, size } = this.props
88
let div = []
99
for (let index = 0; index < 4; index++) {
10-
div.push(<div key={index} style={{ borderColor: `${color} transparent transparent transparent`, width: size * 0.8, height: size * 0.8, margin: size * 0.1, borderWidth: size * 0.1 }}></div>)
10+
div.push(
11+
<div
12+
key={index}
13+
style={{
14+
borderColor: `${color} transparent transparent transparent`,
15+
width: size * 0.8,
16+
height: size * 0.8,
17+
margin: size * 0.1,
18+
borderWidth: size * 0.1,
19+
}}
20+
></div>
21+
)
1122
}
12-
return div;
23+
return div
1324
}
1425

1526
render() {
16-
const { size } = this.props;
17-
return <div className="lds-ring" style={{ width: size, height: size }}>{this.Circles()}</div>
27+
const { size } = this.props
28+
return (
29+
<div className="lds-ring" style={{ width: size, height: size }}>
30+
{this.Circles()}
31+
</div>
32+
)
1833
}
1934
}
2035

src/components/Ripple/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default class Ripple extends Component {
88
for (let index = 0; index < 2; index++) {
99
div.push(<div key={index} style={{ borderColor: `${this.props.color}` }}></div>)
1010
}
11-
return div;
11+
return div
1212
}
1313

1414
render() {

src/components/Roller/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default class Roller extends Component {
1212
</div>
1313
)
1414
}
15-
return div;
15+
return div
1616
}
1717

1818
render() {

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const SizeProp = () => {
126126
const App = () => {
127127
return (
128128
<div>
129-
<h1 style={{textAlign: 'center'}}>React Spinners</h1>
129+
<h1 style={{ textAlign: 'center' }}>React Spinners</h1>
130130
<Spinners />
131131
<ColorProp />
132132
<SizeProp />

0 commit comments

Comments
 (0)