Skip to content

Commit

Permalink
Update components
Browse files Browse the repository at this point in the history
  • Loading branch information
e1emeb0t committed Jun 28, 2017
1 parent a146070 commit ce99ecf
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 118 deletions.
55 changes: 29 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
},
"homepage": "https://github.com/eleme/element-react",
"devDependencies": {
"@types/react": "^15.0.31",
"@types/react": "^15.0.33",
"babel-cli": "^6.24.1",
"babel-eslint": "^7.2.3",
"babel-jest": "^20.0.3",
"babel-loader": "^7.1.0",
"babel-loader": "^7.1.1",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-1": "^6.24.1",
Expand All @@ -50,7 +50,7 @@
"eslint-config-airbnb": "^15.0.1",
"eslint-plugin-flowtype": "^2.34.0",
"eslint-plugin-import": "^2.6.0",
"eslint-plugin-jsx-a11y": "^5.0.3",
"eslint-plugin-jsx-a11y": "^5.1.0",
"eslint-plugin-react": "^7.0.1",
"extract-text-webpack-plugin": "^2.1.2",
"file-loader": "^0.11.2",
Expand All @@ -63,13 +63,13 @@
"prismjs": "^1.6.0",
"raw-loader": "^0.5.1",
"react-hot-loader": "^3.0.0-beta.7",
"react-scroll-up": "^1.3.0",
"react-scroll-up": "^1.3.1",
"react-test-renderer": "^15.5.4",
"regenerator-runtime": "^0.10.5",
"sass-loader": "^6.0.5",
"sinon": "^2.3.4",
"style-loader": "^0.18.2",
"typescript": "^2.4.0",
"typescript": "^2.4.1",
"url-loader": "^0.5.8",
"webpack": "^3.0.0",
"webpack-dev-server": "^2.5.0"
Expand Down
4 changes: 2 additions & 2 deletions src/checkbox/CheckBoxGroup.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @flow */

import React, { Children } from 'react';
import React from 'react';
import { Component, PropTypes } from '../../libs'

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

const children = Children.map(this.props.children, (child, index) => {
const children = React.Children.map(this.props.children, (child, index) => {
if (!child) {
return null;
}
Expand Down
8 changes: 1 addition & 7 deletions src/message/Toast.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@

import React from 'react';
import { Component, PropTypes, Transition, View } from '../../libs';
import icons from './assets';

type State = {
visible: boolean
};

const icons = {
error: require('./assets/error.svg'),
info: require('./assets/info.svg'),
success: require('./assets/success.svg'),
warning: require('./assets/warning.svg')
}

export default class Toast extends Component {
state: State;

Expand Down
10 changes: 10 additions & 0 deletions src/message/assets.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 0 additions & 19 deletions src/message/assets/error.svg

This file was deleted.

Loading

0 comments on commit ce99ecf

Please sign in to comment.