diff --git a/src/app/molecules/channel-intro/ChannelIntro.jsx b/src/app/molecules/channel-intro/ChannelIntro.jsx index 84c0c14..362dc14 100644 --- a/src/app/molecules/channel-intro/ChannelIntro.jsx +++ b/src/app/molecules/channel-intro/ChannelIntro.jsx @@ -13,11 +13,11 @@ function linkifyContent(content) { } function ChannelIntro({ - avatarSrc, name, heading, desc, time, + roomId, avatarSrc, name, heading, desc, time, }) { return (
- +
{heading} {linkifyContent(desc)} @@ -33,6 +33,7 @@ ChannelIntro.defaultProps = { }; ChannelIntro.propTypes = { + roomId: PropTypes.string.isRequired, avatarSrc: PropTypes.oneOfType([ PropTypes.string, PropTypes.bool, diff --git a/src/app/organisms/channel/ChannelViewContent.jsx b/src/app/organisms/channel/ChannelViewContent.jsx index b745209..e4eceb6 100644 --- a/src/app/organisms/channel/ChannelViewContent.jsx +++ b/src/app/organisms/channel/ChannelViewContent.jsx @@ -127,6 +127,7 @@ function genChannelIntro(mEvent, roomTimeline) { return ( - + {roomName} { typeof roomTopic !== 'undefined' &&

{roomTopic}

}