refactor(comment media): use hook instead of prop

This commit is contained in:
plebeius.eth
2024-04-16 13:10:25 +02:00
parent e191e403db
commit 21c180913d
2 changed files with 8 additions and 10 deletions
-4
View File
@@ -78,7 +78,6 @@ const PostDesktop = ({ post, roles, showAllReplies }: PostProps) => {
{hasThumbnail && (
<CommentMedia
commentMediaInfo={commentMediaInfo}
isMobile={false}
isOutOfFeed={isDescription || isRules} // virtuoso wrapper unneeded
isReply={false}
linkHeight={linkHeight}
@@ -252,7 +251,6 @@ const ReplyDesktop = ({ reply, roles }: PostProps) => {
{hasThumbnail && (
<CommentMedia
commentMediaInfo={commentMediaInfo}
isMobile={false}
isReply={true}
linkHeight={linkHeight}
linkWidth={linkWidth}
@@ -347,7 +345,6 @@ const PostMobile = ({ post, roles, showAllReplies }: PostProps) => {
{hasThumbnail && (
<CommentMedia
commentMediaInfo={commentMediaInfo}
isMobile={true}
isOutOfFeed={isDescription || isRules} // virtuoso wrapper unneeded
isReply={false}
linkHeight={linkHeight}
@@ -430,7 +427,6 @@ const ReplyMobile = ({ reply, roles }: PostProps) => {
{hasThumbnail && (
<CommentMedia
commentMediaInfo={commentMediaInfo}
isMobile={true}
isReply={false}
linkHeight={linkHeight}
linkWidth={linkWidth}