Ignore:
Timestamp:
03/24/26 22:13:36 (3 months ago)
Author:
kikisrbinoska <srbinoskakristina07@…>
Branches:
main
Children:
7fbb91c
Parents:
acf690c
Message:

Fixed reading lists,comments and likes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapterx-frontend/src/components/notifications/NotificationDropdown.tsx

    racf690c r73b69b2  
    1414    case 'system': return <Settings {...props} className="text-slate-400" />
    1515    default: return <Bell {...props} className="text-slate-400" />
     16  }
     17}
     18
     19const 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'
    1627  }
    1728}
     
    6980              </div>
    7081              <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>
    7283                <p className="text-xs text-slate-400 line-clamp-2">{n.message}</p>
    7384                <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.