Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/(protected)/dashboard/_components/ChatList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default function ChatList({ chats }: Props) {
href={`/dashboard/chat/${sala.id}`}
className="flex gap-5 items-center justify-between bg-purple w-full p-3 rounded-2xl min-w-0 flex-11/12"
>
<p className="font-bold text-2xl lg:text-4xl truncate min-w-0 flex-1">
Chat con {sala.userIds[0]}
<p className="font-bold text-2xl lg:text-3xl truncate min-w-0 flex-1">
{sala.displayNames[0]}
</p>
<div className="hidden sm:flex flex-col items-center flex-shrink-0">
<p className="font-semibold text-sm">
Expand Down
2 changes: 2 additions & 0 deletions app/(protected)/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export default function Dashboard() {

if (chatsLoading || isLoading) return <LoadingEmoji />;

console.log('Chats:', chats);

return (
<section className="w-full h-full overflow-auto flex flex-col">
<header className="w-full h-15 bg-semidarkpurple flex justify-center items-center">
Expand Down
1 change: 1 addition & 0 deletions app/_lib/_interfaces/IChat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export interface IChat {
isDeleted: boolean;
lastMessage?: IMessage;
userIds: string[];
displayNames: string[];
}