From adf06c76465fe90e2d28fef80c0f9e79dd472226 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 4 Apr 2019 19:22:44 +0300 Subject: MessageContainer prop types --- vnext/src/components/Message.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'vnext/src') 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 ? (
) : (); } @@ -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 -- cgit v1.2.3