Skip to content

Commit 820bf85

Browse files
committed
fix eslint error
1 parent 47f2823 commit 820bf85

File tree

1 file changed

+34
-36
lines changed

1 file changed

+34
-36
lines changed

examples/gradient-circle.js

Lines changed: 34 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,40 @@ import React, { Component } from 'react';
33
import ReactDOM from 'react-dom';
44
import { Circle } from 'rc-progress';
55

6-
class Example extends Component {
7-
render() {
8-
const circleContainerStyle = {
9-
width: '250px',
10-
height: '250px',
11-
display: 'inline-block',
12-
};
13-
return (
14-
<div>
15-
<h3>Circle Progress {90}%</h3>
16-
<div style={circleContainerStyle}>
17-
<Circle
18-
percent={90}
19-
strokeWidth="6"
20-
strokeLinecap="round"
21-
strokeColor={{
22-
'0%': '#108ee9',
23-
'100%': '#87d068',
24-
}}
25-
/>
26-
</div>
27-
<h3>Circle Progress {100}%</h3>
28-
<div style={circleContainerStyle}>
29-
<Circle
30-
percent={100}
31-
strokeWidth="6"
32-
strokeLinecap="round"
33-
strokeColor={{
34-
'100%': '#87d068',
35-
'0%': '#108ee9',
36-
}}
37-
/>
38-
</div>
6+
const Example = () => {
7+
const circleContainerStyle = {
8+
width: '250px',
9+
height: '250px',
10+
display: 'inline-block',
11+
};
12+
return (
13+
<div>
14+
<h3>Circle Progress {90}%</h3>
15+
<div style={circleContainerStyle}>
16+
<Circle
17+
percent={90}
18+
strokeWidth="6"
19+
strokeLinecap="round"
20+
strokeColor={{
21+
'0%': '#108ee9',
22+
'100%': '#87d068',
23+
}}
24+
/>
3925
</div>
40-
);
41-
}
42-
}
26+
<h3>Circle Progress {100}%</h3>
27+
<div style={circleContainerStyle}>
28+
<Circle
29+
percent={100}
30+
strokeWidth="6"
31+
strokeLinecap="round"
32+
strokeColor={{
33+
'100%': '#87d068',
34+
'0%': '#108ee9',
35+
}}
36+
/>
37+
</div>
38+
</div>
39+
);
40+
};
4341

4442
ReactDOM.render(<Example />, document.getElementById('__react-content'));

0 commit comments

Comments
 (0)