|
|
|
@ -1,37 +1,35 @@
|
|
|
|
|
import React from 'react'; |
|
|
|
|
const ChatDashboard = () => { |
|
|
|
|
const ChatDashboard = (props) => { |
|
|
|
|
const { dataParams } = props; |
|
|
|
|
|
|
|
|
|
const renderComment = (items) => { |
|
|
|
|
return items.map((item, idx) => { |
|
|
|
|
return ( |
|
|
|
|
<div className="chat-content" key={idx}> |
|
|
|
|
<div className='chat-body'> |
|
|
|
|
<div className='chat-header'> |
|
|
|
|
{item.comment_by} |
|
|
|
|
</div> |
|
|
|
|
<div className='chat-body-content'> |
|
|
|
|
{item.comment} |
|
|
|
|
</div> |
|
|
|
|
<div className='chat-footer'> |
|
|
|
|
{item.comment_created} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<div style={{ margin: '0 5px' }} className="box-header-dashboard-project"> |
|
|
|
|
<div style={{ display: 'flex', justifyContent: 'center' }}> |
|
|
|
|
<div style={{ marginBottom: '5px', fontSize: '0.8rem', fontWeight: '500' }}>Minutes of Meeting</div> |
|
|
|
|
<div style={{ marginBottom: '5px', fontSize: '0.8rem', fontWeight: '500' }}>COMMUNICATION</div> |
|
|
|
|
</div> |
|
|
|
|
<div className='chat'> |
|
|
|
|
<div className="chat-content"> |
|
|
|
|
<div className='chat-body'> |
|
|
|
|
<div className='chat-header'> |
|
|
|
|
Robert William |
|
|
|
|
</div> |
|
|
|
|
<div className='chat-body-content'> |
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore Read More... |
|
|
|
|
</div> |
|
|
|
|
<div className='chat-footer'> |
|
|
|
|
14/01/22 14:21 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div className="chat-content"> |
|
|
|
|
<div className='chat-body'> |
|
|
|
|
<div className='chat-header'> |
|
|
|
|
Jennifer lawrence |
|
|
|
|
</div> |
|
|
|
|
<div className='chat-body-content'> |
|
|
|
|
Curabitur lobortis tellus nibh, at tincidunt turpis viverra at. Integer aliquam in quam eu fringilla. Nullam eu mauris Read More... |
|
|
|
|
</div> |
|
|
|
|
<div className='chat-footer'> |
|
|
|
|
14/01/22 10:20 |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{renderComment(dataParams)} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
); |
|
|
|
|