Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Commit

Permalink
fix(React): PropTypes warnings w/ React 5.5+ (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
pioh authored and rnicholus committed May 25, 2017
1 parent 20f63ce commit b0c0f80
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 17 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-fine-uploader",
"version": "1.0.0",
"version": "1.0.1",
"license": "MIT",
"description": "React UI components for using Fine Uploader in a React-based project.",
"author": {
Expand All @@ -22,7 +22,8 @@
"main": "gallery/index.js",
"peerDependencies": {
"react": "0.14.x || 15.x.x",
"react-addons-css-transition-group": "0.14.x || 15.x.x"
"react-addons-css-transition-group": "0.14.x || 15.x.x",
"prop-types": "15.x.x"
},
"dependencies": {
"fine-uploader-wrappers": "1.0.0",
Expand Down Expand Up @@ -59,6 +60,7 @@
"react-addons-css-transition-group": "15.4.2",
"react-addons-test-utils": "15.4.2",
"react-dom": "15.4.2",
"prop-types": "15.5.8",
"style-loader": "0.16.0",
"webpack": "2.3.2",
"webpack-node-externals": "1.5.4"
Expand Down
3 changes: 2 additions & 1 deletion src/cancel-button.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'

class CancelButton extends Component {
static propTypes = {
Expand Down
3 changes: 2 additions & 1 deletion src/delete-button.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'

class DeleteButton extends Component {
static propTypes = {
Expand Down
3 changes: 2 additions & 1 deletion src/dropzone.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import qq from 'fine-uploader/lib/dnd'
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'

class DropzoneElement extends Component {
static propTypes = {
Expand Down
3 changes: 2 additions & 1 deletion src/file-input/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'

import StyleableElement from './styleable-element'

Expand Down
3 changes: 2 additions & 1 deletion src/filename.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'

class Filename extends Component {
static propTypes = {
Expand Down
3 changes: 2 additions & 1 deletion src/filesize.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'

class Filesize extends Component {
static propTypes = {
Expand Down
3 changes: 2 additions & 1 deletion src/gallery/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import ReactCssTransitionGroup from 'react-addons-css-transition-group'

import CancelButton from '../cancel-button'
Expand Down
3 changes: 2 additions & 1 deletion src/pause-resume-button.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'

class PauseResumeButton extends Component {
static propTypes = {
Expand Down
3 changes: 2 additions & 1 deletion src/progress-bar.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'

class ProgressBar extends Component {
static propTypes = {
Expand Down
3 changes: 2 additions & 1 deletion src/retry-button.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'

class RetryButton extends Component {
static propTypes = {
Expand Down
3 changes: 2 additions & 1 deletion src/status.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import objectAssign from 'object-assign'
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'

class Status extends Component {
static propTypes = {
Expand Down
3 changes: 2 additions & 1 deletion src/thumbnail/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'

import Placeholder from './placeholder'

Expand Down
3 changes: 2 additions & 1 deletion src/thumbnail/not-available-placeholder.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'

class NotAvailablePlaceholder extends Component {
static propTypes = {
Expand Down
3 changes: 2 additions & 1 deletion src/thumbnail/placeholder.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'
import React from 'react'
import PropTypes from 'prop-types'

const Placeholder = ({ className, image, size, status }) => {
const style = {
Expand Down
3 changes: 2 additions & 1 deletion src/thumbnail/waiting-placeholder.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react'
import React, { Component } from 'react'
import PropTypes from 'prop-types'

class WaitingPlaceholder extends Component {
static propTypes = {
Expand Down

0 comments on commit b0c0f80

Please sign in to comment.