Add topic modal
This commit is contained in:
parent
aab1ad3e99
commit
24960f23b9
11 changed files with 235 additions and 172 deletions
19
client/js/components/modals/Topic.js
Normal file
19
client/js/components/modals/Topic.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
import React from 'react';
|
||||
import withModal from 'components/modals/withModal';
|
||||
import { linkify } from 'utils';
|
||||
|
||||
const Topic = ({ payload: { topic, channel }, onClose }) => {
|
||||
return (
|
||||
<>
|
||||
<div className="modal-header">
|
||||
<h2>Topic in {channel}</h2>
|
||||
<i className="icon-cancel modal-close" onClick={onClose} />
|
||||
</div>
|
||||
<p className="modal-content">{linkify(topic)}</p>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default withModal({
|
||||
name: 'topic'
|
||||
})(Topic);
|
Loading…
Add table
Add a link
Reference in a new issue