File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ before_install:
99 - npm install -g babel-cli
1010 - npm install -g jest-cli
1111script :
12- - " gulp eslint"
12+ - " gulp eslint && npm test "
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ var _reactAddonsUpdate = require('react-addons-update');
1414
1515var _reactAddonsUpdate2 = _interopRequireDefault ( _reactAddonsUpdate ) ;
1616
17- var _tag = require ( './tag ' ) ;
17+ var _Tag = require ( './Tag ' ) ;
1818
19- var _tag2 = _interopRequireDefault ( _tag ) ;
19+ var _Tag2 = _interopRequireDefault ( _Tag ) ;
2020
2121function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { default : obj } ; }
2222
@@ -123,7 +123,7 @@ var Tags = function (_Component) {
123123 var _this4 = this ;
124124
125125 var tagItems = this . state . tags . map ( function ( tag , v ) {
126- return _react2 . default . createElement ( _tag2 . default , {
126+ return _react2 . default . createElement ( _Tag2 . default , {
127127 key : v ,
128128 readOnly : _this4 . props . readOnly ,
129129 name : tag ,
Original file line number Diff line number Diff line change 11{
22 "name" : " react-tagging-input" ,
3- "version" : " 1.1.4 " ,
3+ "version" : " 1.1.5 " ,
44 "description" : " Simple tagging component" ,
55 "main" : " dist-components/Tags.js" ,
66 "license" : " MIT" ,
Original file line number Diff line number Diff line change 22
33import React from 'react' ;
44
5- const tag = props => {
5+ const Tag = props => {
66 const onRemoveClick = e => {
77 e . preventDefault ( ) ;
88
@@ -29,9 +29,9 @@ const tag = props => {
2929 ) ;
3030} ;
3131
32- export default tag ;
32+ export default Tag ;
3333
34- tag . propTypes = {
34+ Tag . propTypes = {
3535 name : React . PropTypes . string . isRequired ,
3636 removeTag : React . PropTypes . func ,
3737 readOnly : React . PropTypes . bool ,
Original file line number Diff line number Diff line change 22
33import React , { Component } from 'react' ;
44import update from 'react-addons-update' ;
5- import tag from './tag ' ;
5+ import Tag from './Tag ' ;
66
77const map = new WeakMap ( ) ;
88
@@ -95,7 +95,7 @@ export default class Tags extends Component{
9595
9696 render ( ) {
9797 const tagItems = this . state . tags . map ( ( tag , v ) => {
98- return < tag
98+ return < Tag
9999 key = { v }
100100 readOnly = { this . props . readOnly }
101101 name = { tag }
You can’t perform that action at this time.
0 commit comments