Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Commit

Permalink
react-rough@1.0.0-rc-1
Browse files Browse the repository at this point in the history
  • Loading branch information
ooade committed Apr 12, 2018
1 parent ff666a1 commit 6a550a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-rough",
"version": "1.0.0-alpha.1",
"version": "1.0.0-rc.1",
"description": "React Bindings for Rough.js",
"main": "dist/react-rough.js",
"module": "dist/react-rough.es.js",
Expand Down
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class ReactRough extends Component {
if (children) {
React.Children.map(children, child => {
const type = child.type.name.toLowerCase()

const { points, ...data } = child.props

rc[type](...points, data)
Expand All @@ -44,7 +43,7 @@ export const Arc = ({ width, height, points, ...data }) => {
)
}

export const Circle = ({ width, height, onRender, points, ...data }) => {
export const Circle = ({ width, height, points, ...data }) => {
return (
<ReactRough
width={width}
Expand Down

0 comments on commit 6a550a4

Please sign in to comment.