From 0fcda1b6e91db64f2b2884231c3cf8c4014afd25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=81=E6=B2=BB=E5=B9=B3?= Date: Wed, 19 Apr 2017 11:32:39 +0800 Subject: [PATCH 1/2] Add displayName --- src/Box.js | 2 ++ src/Button.js | 2 ++ src/Column.js | 2 ++ src/Grid.js | 2 ++ src/Row.js | 2 ++ 5 files changed, 10 insertions(+) diff --git a/src/Box.js b/src/Box.js index 707cf05..8200ac3 100644 --- a/src/Box.js +++ b/src/Box.js @@ -45,6 +45,8 @@ class Box extends Component { } } +Box.displayName = 'Box'; + Box.defaultProps = { wrapper: 'div', }; diff --git a/src/Button.js b/src/Button.js index b88ef78..f28ef9c 100644 --- a/src/Button.js +++ b/src/Button.js @@ -21,4 +21,6 @@ class Button extends Component { } } +Button.displayName = 'Button'; + export default Button; diff --git a/src/Column.js b/src/Column.js index b727dd9..3b7e0ee 100644 --- a/src/Column.js +++ b/src/Column.js @@ -22,6 +22,8 @@ class Column extends Component { } } +Column.displayName = 'Column'; + Column.propTypes = { wide: PropTypes.number, }; diff --git a/src/Grid.js b/src/Grid.js index 3a69101..965e7de 100644 --- a/src/Grid.js +++ b/src/Grid.js @@ -37,6 +37,8 @@ class Grid extends Component { } } +Grid.displayName = 'Grid'; + Grid.propTypes = { column: PropTypes.number, relaxed: PropTypes.bool, diff --git a/src/Row.js b/src/Row.js index 50bc898..99a8641 100644 --- a/src/Row.js +++ b/src/Row.js @@ -30,6 +30,8 @@ class Row extends Component { } } +Row.displayName = 'Row'; + Row.propTypes = { column: PropTypes.number, doubling: PropTypes.bool, From 05fe09f9d51e6d006f739903ae8b3c5524078216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=81=E6=B2=BB=E5=B9=B3?= Date: Wed, 19 Apr 2017 11:33:09 +0800 Subject: [PATCH 2/2] 0.2.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 297670d..ba2573e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-tocas", - "version": "0.2.0", + "version": "0.2.1", "description": "Tocas UI 2 components built with react", "main": "lib/index.js", "scripts": {