39 | {parentUserName && ( 40 | 41 | @{parentUserName} 42 | 43 | )} 44 | {commentMessage} 45 |
46 | )} 47 |removed
14 |{message}
18 | 21 |{message}
6 | ); 7 | 8 | export default FormErrorMessage; 9 | -------------------------------------------------------------------------------- /src/components/form/form-input.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { 3 | FieldError, 4 | FieldValues, 5 | Path, 6 | RegisterOptions, 7 | UseFormRegister, 8 | } from 'react-hook-form'; 9 | import FormErrorMessage from '@/components/form/form-error-message'; 10 | 11 | export type FormInputProps{searchEntry.title}
56 |57 | {searchEntry.type === SearchType.USER 58 | ? `${searchEntry.followersCount} followers` 59 | : `${searchEntry.followersCount} members`} 60 |
61 |22 | 23 | {notification.user.name} 24 | 25 | replied to your comment 26 |
27 |32 | {notification.commentMessage} 33 |
34 |23 | 24 | {notification.user.name} 25 | 26 | has joinned to your community{' '} 27 | 28 | {notification.community.name} 29 | 30 |
31 |20 | 21 | {notification.postAutor.name} 22 | 23 | has mentioned you in post 24 |
25 |30 | {notification.postContent} 31 |
32 |22 | 23 | {notification.user.name} 24 | 25 | commented your post 26 |
27 | 28 |33 | {notification.commentMessage} 34 |
35 |23 | 24 | {notification.user.name} 25 | 26 | started following you 27 |
28 |
33 |
26 | {communityName} 27 |
28 | 29 | 30 | ); 31 | 32 | export default CommunityBadge; 33 | -------------------------------------------------------------------------------- /src/components/post-card/index.ts: -------------------------------------------------------------------------------- 1 | export * from './post-card'; 2 | -------------------------------------------------------------------------------- /src/components/post-card/mentions-list.tsx: -------------------------------------------------------------------------------- 1 | /* eslint-disable jsx-a11y/no-static-element-interactions */ 2 | /* eslint-disable jsx-a11y/click-events-have-key-events */ 3 | import Link from 'next/link'; 4 | import { SearchUserType } from '@/types/db'; 5 | 6 | interface MentionsListProps { 7 | mentions: SearchUserType[]; 8 | } 9 | 10 | const MentionsList = ({ mentions }: MentionsListProps) => ( 11 |{user.name}
25 | 26 | 27 | ))} 28 |reshared
29 |{sharedPost.user.name}
54 |55 | {sharedPost.createdAt.toDateString()} 56 |
57 |{sharedPost.content}
60 | 61 | {firstImage && ( 62 |