Skip to content

Commit

Permalink
Update PostBody.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
EslamAsHhraf committed Jan 28, 2023
1 parent beadebd commit afe3e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MainProfile/Posts/PostBody/PostBody.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function PostBody({ post, isSpoiler }) {
{post?.kind === 'video' ? (
// eslint-disable-next-line jsx-a11y/media-has-caption
<video controls style={{ width: '1000%', maxHeight: '512px' }} onClick={() => { setEditPost(false); navigate(`/${post?.ownerType === 'Subreddit' ? 'subreddit' : 'user'}/${post?.owner?.name}/comments/${post?._id}`); }}>
<source src={post?.videos} type="video/mp4" />
<source src={post?.video} type="video/mp4" />
</video>
) : (
(post?.kind === 'image')
Expand Down

0 comments on commit afe3e64

Please sign in to comment.