From 9238ff172a2bb7487a5432954eeaac060a750cba Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Sat, 19 Sep 2020 17:32:21 -0500 Subject: [PATCH] Update PropTypes dependency --- src/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 9564b7e..cbe65e7 100644 --- a/src/index.js +++ b/src/index.js @@ -1,12 +1,13 @@ -import React, { Component, PropTypes, createElement } from 'react' +import React, { Component, createElement } from 'react' +import PropTypes from 'prop-types' import sanitizeHtml from 'sanitize-html' export default class SimpleFormat extends Component { static propTypes = { text: PropTypes.string.isRequired, wrapperTag: PropTypes.oneOfType([ - React.PropTypes.string, - React.PropTypes.object + PropTypes.string, + PropTypes.object ]), wrapperTagProps: PropTypes.object, postfix: PropTypes.node