add profileurlviewer proptypes

This commit is contained in:
Barry Gitarts 2019-08-26 20:19:52 -04:00 committed by Barry G
parent 6610344fca
commit f154fd1b22
1 changed files with 8 additions and 1 deletions

View File

@ -1,7 +1,8 @@
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types';
import { isIpfs, getFromIpfs } from '../../utils/ipfs'
export default class ProfileUrlViewer extends PureComponent {
class ProfileUrlViewer extends PureComponent {
state = { url: null }
componentDidMount() {
this.getSource()
@ -35,3 +36,9 @@ export default class ProfileUrlViewer extends PureComponent {
)
}
}
ProfileUrlViewer.PropTypes = {
url: PropTypes.string
}
export default ProfileUrlViewer