Skip to content

Commit ce99ecf

Browse files
committed
Update components
1 parent a146070 commit ce99ecf

File tree

10 files changed

+50
-118
lines changed

10 files changed

+50
-118
lines changed

package-lock.json

Lines changed: 29 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
},
3333
"homepage": "https://github.com/eleme/element-react",
3434
"devDependencies": {
35-
"@types/react": "^15.0.31",
35+
"@types/react": "^15.0.33",
3636
"babel-cli": "^6.24.1",
3737
"babel-eslint": "^7.2.3",
3838
"babel-jest": "^20.0.3",
39-
"babel-loader": "^7.1.0",
39+
"babel-loader": "^7.1.1",
4040
"babel-preset-es2015": "^6.24.1",
4141
"babel-preset-react": "^6.24.1",
4242
"babel-preset-stage-1": "^6.24.1",
@@ -50,7 +50,7 @@
5050
"eslint-config-airbnb": "^15.0.1",
5151
"eslint-plugin-flowtype": "^2.34.0",
5252
"eslint-plugin-import": "^2.6.0",
53-
"eslint-plugin-jsx-a11y": "^5.0.3",
53+
"eslint-plugin-jsx-a11y": "^5.1.0",
5454
"eslint-plugin-react": "^7.0.1",
5555
"extract-text-webpack-plugin": "^2.1.2",
5656
"file-loader": "^0.11.2",
@@ -63,13 +63,13 @@
6363
"prismjs": "^1.6.0",
6464
"raw-loader": "^0.5.1",
6565
"react-hot-loader": "^3.0.0-beta.7",
66-
"react-scroll-up": "^1.3.0",
66+
"react-scroll-up": "^1.3.1",
6767
"react-test-renderer": "^15.5.4",
6868
"regenerator-runtime": "^0.10.5",
6969
"sass-loader": "^6.0.5",
7070
"sinon": "^2.3.4",
7171
"style-loader": "^0.18.2",
72-
"typescript": "^2.4.0",
72+
"typescript": "^2.4.1",
7373
"url-loader": "^0.5.8",
7474
"webpack": "^3.0.0",
7575
"webpack-dev-server": "^2.5.0"

src/checkbox/CheckBoxGroup.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* @flow */
22

3-
import React, { Children } from 'react';
3+
import React from 'react';
44
import { Component, PropTypes } from '../../libs'
55

66
type State = {
@@ -53,7 +53,7 @@ export default class CheckboxGroup extends Component {
5353
render(): React.Element<any> {
5454
const { options } = this.state;
5555

56-
const children = Children.map(this.props.children, (child, index) => {
56+
const children = React.Children.map(this.props.children, (child, index) => {
5757
if (!child) {
5858
return null;
5959
}

src/message/Toast.jsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,12 @@
22

33
import React from 'react';
44
import { Component, PropTypes, Transition, View } from '../../libs';
5+
import icons from './assets';
56

67
type State = {
78
visible: boolean
89
};
910

10-
const icons = {
11-
error: require('./assets/error.svg'),
12-
info: require('./assets/info.svg'),
13-
success: require('./assets/success.svg'),
14-
warning: require('./assets/warning.svg')
15-
}
16-
1711
export default class Toast extends Component {
1812
state: State;
1913

src/message/assets.js

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/message/assets/error.svg

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)