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

Commit b0c0f80

Browse files
piohrnicholus
authored andcommitted
fix(React): PropTypes warnings w/ React 5.5+ (#119)
1 parent 20f63ce commit b0c0f80

16 files changed

+34
-17
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-fine-uploader",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"license": "MIT",
55
"description": "React UI components for using Fine Uploader in a React-based project.",
66
"author": {
@@ -22,7 +22,8 @@
2222
"main": "gallery/index.js",
2323
"peerDependencies": {
2424
"react": "0.14.x || 15.x.x",
25-
"react-addons-css-transition-group": "0.14.x || 15.x.x"
25+
"react-addons-css-transition-group": "0.14.x || 15.x.x",
26+
"prop-types": "15.x.x"
2627
},
2728
"dependencies": {
2829
"fine-uploader-wrappers": "1.0.0",
@@ -59,6 +60,7 @@
5960
"react-addons-css-transition-group": "15.4.2",
6061
"react-addons-test-utils": "15.4.2",
6162
"react-dom": "15.4.2",
63+
"prop-types": "15.5.8",
6264
"style-loader": "0.16.0",
6365
"webpack": "2.3.2",
6466
"webpack-node-externals": "1.5.4"

src/cancel-button.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react'
1+
import React, { Component } from 'react'
2+
import PropTypes from 'prop-types'
23

34
class CancelButton extends Component {
45
static propTypes = {

src/delete-button.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react'
1+
import React, { Component } from 'react'
2+
import PropTypes from 'prop-types'
23

34
class DeleteButton extends Component {
45
static propTypes = {

src/dropzone.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import qq from 'fine-uploader/lib/dnd'
2-
import React, { Component, PropTypes } from 'react'
2+
import React, { Component } from 'react'
3+
import PropTypes from 'prop-types'
34

45
class DropzoneElement extends Component {
56
static propTypes = {

src/file-input/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react'
1+
import React, { Component } from 'react'
2+
import PropTypes from 'prop-types'
23

34
import StyleableElement from './styleable-element'
45

src/filename.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react'
1+
import React, { Component } from 'react'
2+
import PropTypes from 'prop-types'
23

34
class Filename extends Component {
45
static propTypes = {

src/filesize.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react'
1+
import React, { Component } from 'react'
2+
import PropTypes from 'prop-types'
23

34
class Filesize extends Component {
45
static propTypes = {

src/gallery/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react'
1+
import React, { Component } from 'react'
2+
import PropTypes from 'prop-types'
23
import ReactCssTransitionGroup from 'react-addons-css-transition-group'
34

45
import CancelButton from '../cancel-button'

src/pause-resume-button.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react'
1+
import React, { Component } from 'react'
2+
import PropTypes from 'prop-types'
23

34
class PauseResumeButton extends Component {
45
static propTypes = {

src/progress-bar.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react'
1+
import React, { Component } from 'react'
2+
import PropTypes from 'prop-types'
23

34
class ProgressBar extends Component {
45
static propTypes = {

src/retry-button.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react'
1+
import React, { Component } from 'react'
2+
import PropTypes from 'prop-types'
23

34
class RetryButton extends Component {
45
static propTypes = {

src/status.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import objectAssign from 'object-assign'
2-
import React, { Component, PropTypes } from 'react'
2+
import React, { Component } from 'react'
3+
import PropTypes from 'prop-types'
34

45
class Status extends Component {
56
static propTypes = {

src/thumbnail/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react'
1+
import React, { Component } from 'react'
2+
import PropTypes from 'prop-types'
23

34
import Placeholder from './placeholder'
45

src/thumbnail/not-available-placeholder.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react'
1+
import React, { Component } from 'react'
2+
import PropTypes from 'prop-types'
23

34
class NotAvailablePlaceholder extends Component {
45
static propTypes = {

src/thumbnail/placeholder.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes } from 'react'
1+
import React from 'react'
2+
import PropTypes from 'prop-types'
23

34
const Placeholder = ({ className, image, size, status }) => {
45
const style = {

src/thumbnail/waiting-placeholder.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react'
1+
import React, { Component } from 'react'
2+
import PropTypes from 'prop-types'
23

34
class WaitingPlaceholder extends Component {
45
static propTypes = {

0 commit comments

Comments
 (0)