Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Jul 15, 2016
1 parent a535238 commit 138a7a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/transfer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default class Transfer extends React.Component {
rightCheckedKeys: [],
};
}

componentWillReceiveProps(nextProps) {
const { leftCheckedKeys, rightCheckedKeys } = this.state;
if (nextProps.targetKeys !== this.props.targetKeys ||
Expand Down
2 changes: 1 addition & 1 deletion components/transfer/list.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default class TransferList extends React.Component {
}

return (
<li onClick={() => { this.handleSelect(item); }} key={item.key} title={renderedText}>
<li onClick={() => this.handleSelect(item)} key={item.key} title={renderedText}>
<Checkbox checked={checkedKeys.some(key => key === item.key)} />
<span>{renderedEl}</span>
</li>
Expand Down

0 comments on commit 138a7a9

Please sign in to comment.