Skip to content

Commit

Permalink
Remove defaultProps from Html.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Nov 14, 2024
1 parent e4fe775 commit 70f7a8a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions rdmo/core/assets/js/components/Html.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@ import React from 'react'
import PropTypes from 'prop-types'
import { isEmpty } from 'lodash'

const Html = ({ html }) => {
const Html = ({ html = '' }) => {
return !isEmpty(html) && (
<div dangerouslySetInnerHTML={{ __html: html }} />
)
}

Html.defaultProps = {
className: ''
}

Html.propTypes = {
className: PropTypes.string,
html: PropTypes.string
Expand Down

0 comments on commit 70f7a8a

Please sign in to comment.