aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-04-04 19:22:44 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:54 +0300
commitadf06c76465fe90e2d28fef80c0f9e79dd472226 (patch)
tree54addb8b8c9013d6ddf2a8e6a7edebf47cf4e1dd /vnext/src/components
parentf56ef42ebcc342113a13652a046bf835eaee007d (diff)
MessageContainer prop types
Diffstat (limited to 'vnext/src/components')
-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