Skip to content

Commit

Permalink
minor refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
isomorpheric committed Apr 4, 2021
1 parent 2534a09 commit 839454c
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions pages/groups/[id]/[room]/[post].js
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,21 @@ const Post = () => {
)}

{!editMode ? (
<ReactMarkdownWithHtml
source={postData.description}
allowDangerousHtml
renderers={renderers}
/>
<>
<div>
<Typography color='primary' variant='body1'>
Posteado por {postData.authorName}
</Typography>
<Typography color='primary' variant='body1'>
{postData.dateCreated.toDate().toDateString()}
</Typography>
</div>
<ReactMarkdownWithHtml
source={postData.description}
allowDangerousHtml
renderers={renderers}
/>
</>
) : (
<TextField
value={editData}
Expand Down

1 comment on commit 839454c

@vercel
Copy link

@vercel vercel bot commented on 839454c Apr 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.