feat: add post-menu-mobile

This commit is contained in:
Tom (plebeius.eth)
2024-05-28 19:03:43 +02:00
parent bf6fa1c737
commit 475d9ae416
11 changed files with 156 additions and 31 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
import { Link, useLocation } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import { Comment } from '@plebbit/plebbit-react-hooks';
import styles from './catalog-row.module.css';
import { getCommentMediaInfo, getHasThumbnail } from '../../lib/utils/media-utils';
import { isAllView } from '../../lib/utils/view-utils';
import useFetchGifFirstFrame from '../../hooks/use-fetch-gif-first-frame';
import useCountLinksInReplies from '../../hooks/use-count-links-in-replies';
import styles from './catalog-row.module.css';
import PostMenu from '../post/post-menu/post-menu';
import PostMenuDesktop from '../post/post-desktop/post-menu-desktop/';
export const CatalogPostMedia = ({ commentMediaInfo }: { commentMediaInfo: any }) => {
const { patternThumbnailUrl, thumbnail, type, url } = commentMediaInfo || {};
@@ -93,7 +93,7 @@ const CatalogPost = ({ post }: { post: Comment }) => {
</span>
)}
<span className={styles.postMenu}>
<PostMenu post={post} />
<PostMenuDesktop post={post} />
</span>
</div>
<Link to={postLink}>