Changeset 73b69b2 for chapterx-frontend/src/components/notifications
- Timestamp:
- 03/24/26 22:13:36 (3 months ago)
- Branches:
- main
- Children:
- 7fbb91c
- Parents:
- acf690c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapterx-frontend/src/components/notifications/NotificationDropdown.tsx
racf690c r73b69b2 14 14 case 'system': return <Settings {...props} className="text-slate-400" /> 15 15 default: return <Bell {...props} className="text-slate-400" /> 16 } 17 } 18 19 const typeTitle = (type: NotificationType) => { 20 switch (type) { 21 case 'like': return 'New Like' 22 case 'comment': return 'New Comment' 23 case 'collaboration': return 'Collaboration' 24 case 'follow': return 'New Follower' 25 case 'system': return 'System' 26 default: return 'Notification' 16 27 } 17 28 } … … 69 80 </div> 70 81 <div className="flex-1 min-w-0"> 71 <p className="text-xs font-medium text-white">{ n.title}</p>82 <p className="text-xs font-medium text-white">{typeTitle(n.type)}</p> 72 83 <p className="text-xs text-slate-400 line-clamp-2">{n.message}</p> 73 84 <p className="text-xs text-slate-600 mt-0.5">{timeAgo(n.created_at)}</p>
Note:
See TracChangeset
for help on using the changeset viewer.
