diff --git a/src/app/molecules/dialog/Dialog.jsx b/src/app/molecules/dialog/Dialog.jsx index 4d67597..93307dc 100644 --- a/src/app/molecules/dialog/Dialog.jsx +++ b/src/app/molecules/dialog/Dialog.jsx @@ -27,7 +27,11 @@ function Dialog({
- {twemojify(title)} + { + typeof title === 'string' + ? {twemojify(title)} + : title + } {contentOptions}
@@ -56,7 +60,7 @@ Dialog.defaultProps = { Dialog.propTypes = { className: PropTypes.string, isOpen: PropTypes.bool.isRequired, - title: PropTypes.string.isRequired, + title: PropTypes.node.isRequired, contentOptions: PropTypes.node, onAfterOpen: PropTypes.func, onAfterClose: PropTypes.func,