a tool for shared writing and social publishing

added descriptions to the mention notifcation

+3 -17
+1 -15
app/(home-pages)/notifications/MentionNotification.tsx
··· 60 60 actionText={actionText} 61 61 content={ 62 62 <ContentLayout postTitle={docRecord.title} pubRecord={pubRecord}> 63 - <div className="text-sm text-secondary"> 64 - ... this should be some characters in front of{" "} 65 - <span 66 - className={ 67 - props.mention_type === "document" 68 - ? "italic" 69 - : props.mention_type === "publication" 70 - ? "font-bold" 71 - : "" 72 - } 73 - > 74 - {mentionedItemName ? mentionedItemName : "@handleplaceholder"} 75 - </span>{" "} 76 - and some at the end... 77 - </div> 63 + {docRecord.description && docRecord.description} 78 64 </ContentLayout> 79 65 } 80 66 />
+2 -2
app/(home-pages)/notifications/Notification.tsx
··· 72 72 <div className="text-tertiary text-sm italic font-bold "> 73 73 {props.postTitle} 74 74 </div> 75 - {props.children} 75 + {props.children && <div className="mb-2 text-sm">{props.children}</div>} 76 76 {props.pubRecord && ( 77 77 <> 78 - <hr className="mt-3 mb-1 border-border-light" /> 78 + <hr className="mt-1 mb-1 border-border-light" /> 79 79 <a 80 80 href={`https://${props.pubRecord.base_path}`} 81 81 className="relative text-xs text-tertiary flex gap-[6px] items-center font-bold hover:no-underline!"