aboutsummaryrefslogtreecommitdiff
path: root/vnext/src
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src')
-rw-r--r--vnext/src/components/Message.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/vnext/src/components/Message.js b/vnext/src/components/Message.js
index 6b0854a4..02371ddb 100644
--- a/vnext/src/components/Message.js
+++ b/vnext/src/components/Message.js
@@ -87,7 +87,7 @@ function Message({ data, visitor, children, ...rest }) {
export default React.memo(Message);
-function MessageContainer({isCode, data}) {
+function MessageContainer({ isCode, data }) {
return isCode ? (<pre dangerouslySetInnerHTML={data} />) : (<p dangerouslySetInnerHTML={data} />);
}
@@ -111,6 +111,11 @@ Message.propTypes = {
children: PropTypes.node
};
+MessageContainer.propTypes = {
+ isCode: PropTypes.bool.isRequired,
+ data: PropTypes.array.isRequired
+};
+
Tags.propTypes = {
user: UserType.isRequired,
data: PropTypes.array