a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove placeholder text

+3 -10
+3 -10
components/Mention.tsx
··· 214 214 </div> 215 215 </div> 216 216 <div className="overflow-y-auto flex-1 min-h-0"> 217 - {sortedSuggestions.length === 0 ? ( 217 + {sortedSuggestions.length === 0 && noResults && ( 218 218 <div className="text-sm text-tertiary italic px-3 py-1 text-center"> 219 - {searchQuery 220 - ? noResults 221 - ? "No results found..." 222 - : "Searching..." 223 - : scope.type === "publication" 224 - ? "Start typing to search posts" 225 - : "Start typing to search people and publications"} 219 + No results found 226 220 </div> 227 - ) : ( 221 + )} 228 222 <ul className="list-none p-0 text-sm flex flex-col group-data-[side=top]/mention-menu:flex-col-reverse"> 229 223 {sortedSuggestions.map((result, index) => { 230 224 const prevResult = sortedSuggestions[index - 1]; ··· 291 285 ); 292 286 })} 293 287 </ul> 294 - )} 295 288 </div> 296 289 </Popover.Content> 297 290 </Popover.Portal>