add profileurlviewer proptypes
This commit is contained in:
parent
6610344fca
commit
f154fd1b22
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue