Skip to content

Commit 70f7a8a

Browse files
committed
Remove defaultProps from Html.js
1 parent e4fe775 commit 70f7a8a

File tree

1 file changed

+1
-5
lines changed
  • rdmo/core/assets/js/components

1 file changed

+1
-5
lines changed

rdmo/core/assets/js/components/Html.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@ import React from 'react'
22
import PropTypes from 'prop-types'
33
import { isEmpty } from 'lodash'
44

5-
const Html = ({ html }) => {
5+
const Html = ({ html = '' }) => {
66
return !isEmpty(html) && (
77
<div dangerouslySetInnerHTML={{ __html: html }} />
88
)
99
}
1010

11-
Html.defaultProps = {
12-
className: ''
13-
}
14-
1511
Html.propTypes = {
1612
className: PropTypes.string,
1713
html: PropTypes.string

0 commit comments

Comments
 (0)