Skip to content

Commit

Permalink
Fixing Travis integration and changing the name of the tag component
Browse files Browse the repository at this point in the history
  • Loading branch information
jfusco committed Jul 18, 2016
1 parent f24f35a commit d179f3a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ before_install:
- npm install -g babel-cli
- npm install -g jest-cli
script:
- "gulp eslint"
- "gulp eslint && npm test"
6 changes: 3 additions & 3 deletions dist-components/Tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ var _reactAddonsUpdate = require('react-addons-update');

var _reactAddonsUpdate2 = _interopRequireDefault(_reactAddonsUpdate);

var _tag = require('./tag');
var _Tag = require('./Tag');

var _tag2 = _interopRequireDefault(_tag);
var _Tag2 = _interopRequireDefault(_Tag);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

Expand Down Expand Up @@ -123,7 +123,7 @@ var Tags = function (_Component) {
var _this4 = this;

var tagItems = this.state.tags.map(function (tag, v) {
return _react2.default.createElement(_tag2.default, {
return _react2.default.createElement(_Tag2.default, {
key: v,
readOnly: _this4.props.readOnly,
name: tag,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-tagging-input",
"version": "1.1.4",
"version": "1.1.5",
"description": "Simple tagging component",
"main": "dist-components/Tags.js",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions src/js/tag.js → src/js/Tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import React from 'react';

const tag = props => {
const Tag = props => {
const onRemoveClick = e => {
e.preventDefault();

Expand All @@ -29,9 +29,9 @@ const tag = props => {
);
};

export default tag;
export default Tag;

tag.propTypes = {
Tag.propTypes = {
name: React.PropTypes.string.isRequired,
removeTag: React.PropTypes.func,
readOnly: React.PropTypes.bool,
Expand Down
4 changes: 2 additions & 2 deletions src/js/Tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import React, {Component} from 'react';
import update from 'react-addons-update';
import tag from './tag';
import Tag from './Tag';

const map = new WeakMap();

Expand Down Expand Up @@ -95,7 +95,7 @@ export default class Tags extends Component{

render(){
const tagItems = this.state.tags.map((tag, v) => {
return <tag
return <Tag
key={v}
readOnly={this.props.readOnly}
name={tag}
Expand Down

0 comments on commit d179f3a

Please sign in to comment.