Skip to content

Commit 47e3697

Browse files
lc-softotakustay
authored andcommitted
fix: CodeCell.props.text does not support element type
1 parent e3097a5 commit 47e3697

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Hunk/CodeCell.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const CodeCell = props => {
4343
};
4444

4545
CodeCell.propTypes = {
46-
text: PropTypes.string.isRequired,
46+
text: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired,
4747
tokens: PropTypes.arrayOf(PropTypes.object),
4848
};
4949

0 commit comments

Comments
 (0)