diff --git a/src/components/post/post.tsx b/src/components/post/post.tsx index d16e8a74..8465a43d 100644 --- a/src/components/post/post.tsx +++ b/src/components/post/post.tsx @@ -11,96 +11,6 @@ import styles from './post.module.css'; import Markdown from '../markdown'; import Media from '../media'; -const ReplyDesktop = ({ reply }: any) => { - const { t } = useTranslation(); - const { author, content, link, linkHeight, linkWidth, parentCid, pinned, postCid, shortCid, subplebbitAddress, timestamp } = reply || {}; - const { displayName, shortAddress } = author || {}; - - const commentMediaInfo = getCommentMediaInfoMemoized(reply); - const hasThumbnail = getHasThumbnail(commentMediaInfo, link); - const [showThumbnail, setShowThumbnail] = useState(true); - - const isReplyingToReply = postCid !== parentCid; - - return ( -
- {isReplyingToReply && ( - <> - - {`c/${Plebbit.getShortCid(parentCid)}`} - -- )} -
- > - )} --
- {isReplyingToReply && ( - <> - - {`c/${Plebbit.getShortCid(parentCid)}`} - -- )} + {pinned && ( + +
- > - )} --
+ {isReplyingToReply && ( + <> + + {`c/${Plebbit.getShortCid(parentCid)}`} + ++ )}
+ > + )} ++
+ {isReplyingToReply && ( + <> + + {`c/${Plebbit.getShortCid(parentCid)}`} + ++ )} +
+ > + )} ++