Add alerts to embeds (#1138)

* Add alerts to embeds

* Add images to the mock data

* Fix types
This commit is contained in:
Paul Frazee 2023-08-08 15:54:36 -07:00 committed by GitHub
parent e51dbefd0a
commit bbe9861eef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 80 additions and 15 deletions

View file

@ -269,7 +269,10 @@ export const PostThreadItem = observer(function PostThreadItem({
) : undefined}
{item.post.embed && (
<ContentHider moderation={item.moderation.embed} style={s.mb10}>
<PostEmbeds embed={item.post.embed} />
<PostEmbeds
embed={item.post.embed}
moderation={item.moderation.embed}
/>
</ContentHider>
)}
</ContentHider>
@ -428,7 +431,10 @@ export const PostThreadItem = observer(function PostThreadItem({
) : undefined}
{item.post.embed && (
<ContentHider style={s.mb10} moderation={item.moderation.embed}>
<PostEmbeds embed={item.post.embed} />
<PostEmbeds
embed={item.post.embed}
moderation={item.moderation.embed}
/>
</ContentHider>
)}
{needsTranslation && (