diff --git a/client/src/Playlist-Editor/Chat/ChatMessage.tsx b/client/src/Playlist-Editor/Chat/ChatMessage.tsx index 62d34f7..1d88b63 100644 --- a/client/src/Playlist-Editor/Chat/ChatMessage.tsx +++ b/client/src/Playlist-Editor/Chat/ChatMessage.tsx @@ -69,11 +69,15 @@ export const SituatedChatMessage = ({ {new Date(chatEvent.timestamp).toLocaleString()} - { chatEvent.action && + { chatEvent.action !== 'comment' &&
{ chatEvent.action === 'add' ? 'Added this track' - : 'Removed this track' + : chatEvent.action === 'remove' + ? 'Removed this track' + : chatEvent.action === 're-add' + ? 'Re-added this track' + : 'Error occurred' }
} diff --git a/client/src/Playlist-Editor/Chat/MessageEditor.tsx b/client/src/Playlist-Editor/Chat/MessageEditor.tsx index 504252e..76300b1 100644 --- a/client/src/Playlist-Editor/Chat/MessageEditor.tsx +++ b/client/src/Playlist-Editor/Chat/MessageEditor.tsx @@ -52,11 +52,13 @@ type UserAction = State['userAction'] const iconOfAction = (action: UserAction) => - action === 'add' + action === 'add' || action === 're-add' ? faPlusCircle : action === 'remove' ? faMinusCircle - : faPaperPlane + : action === 'view' + ? faPaperPlane + : null @@ -66,7 +68,7 @@ export const SituatedMessageEditor = ({ onSubmit, onCancel, }: { - action: UserAction, //'add' | 'remove' | 'view' + action: UserAction, onSubmit: (message: string) => Promise- Created by{' '} - - {playlist.owner.display_name} - +
+ + {playlist.followers} + {' '} + Follower{playlist.followers !== 1 && 's'}