Use prop-types package instead of React.PropTypes.
This commit is contained in:
parent
00c808fd7f
commit
498fbfcf41
|
@ -1,4 +1,5 @@
|
|||
import React, {Component} from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
export default class GenerateWalletPasswordComponent extends Component {
|
||||
constructor(props) {
|
||||
|
@ -6,10 +7,10 @@ export default class GenerateWalletPasswordComponent extends Component {
|
|||
}
|
||||
|
||||
static propTypes = {
|
||||
title: React.PropTypes.string,
|
||||
body: React.PropTypes.string,
|
||||
userId: React.PropTypes.number,
|
||||
id: React.PropTypes.number
|
||||
title: PropTypes.string,
|
||||
body: PropTypes.string,
|
||||
userId: PropTypes.number,
|
||||
id: PropTypes.number
|
||||
};
|
||||
|
||||
render() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React, {Component} from 'react'
|
||||
import {Card, Loader, Grid} from 'semantic-ui-react'
|
||||
import GenerateWalletPasswordComponent from './GenerateWalletPasswordComponent'
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
export default class GenerateWalletComponent extends Component {
|
||||
constructor(props) {
|
||||
|
@ -8,7 +8,7 @@ export default class GenerateWalletComponent extends Component {
|
|||
}
|
||||
|
||||
static propTypes = {
|
||||
statistics: React.PropTypes.array
|
||||
statistics: PropTypes.array
|
||||
}
|
||||
|
||||
render() {
|
||||
|
|
Loading…
Reference in New Issue