Skip to content

Commit

Permalink
Reduce code and markup discrepancies on reply indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Nov 16, 2023
1 parent e023acf commit b9f86e3
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,38 +35,38 @@ class ReplyIndicator extends ImmutablePureComponent {
return null;
}

const content = { __html: status.get('contentHtml') };

const account = status.get('account');
const content = status.get('content');
const attachments = status.get('media_attachments');

return (
<article className='reply-indicator'>
<header className='reply-indicator__header'>
<div className='reply-indicator'>
<div className='reply-indicator__header'>
<IconButton
className='reply-indicator__cancel'
icon='times'
onClick={this.handleClick}
title={intl.formatMessage(messages.cancel)}
inverted
/>

{account && (
<AccountContainer
id={account}
small
/>
)}
</header>
<div
className='reply-indicator__content translate'
dangerouslySetInnerHTML={{ __html: content || '' }}
/>
{attachments.size > 0 && (
</div>

<div className='reply-indicator__content translate' dangerouslySetInnerHTML={content} />

{status.get('media_attachments').size > 0 && (
<AttachmentList
compact
media={attachments}
media={status.get('media_attachments')}
/>
)}
</article>
</div>
);
}

Expand Down

0 comments on commit b9f86e3

Please sign in to comment.