Skip to content

Commit

Permalink
border
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaid-maker authored Mar 9, 2024
1 parent 0a17a7e commit 7261a05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/board/[boardId]/_components/participants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { useOthers, useSelf } from "@/liveblocks.config";
import React from "react";
import { UserAvatar } from "./user-avatar";
import { connectionIdToColor } from "@/lib/utils";

const MAX_SHOWN_USERS = 2;

Expand All @@ -21,13 +22,14 @@ export const Participants = () => {
src={info?.picture}
name={info?.name}
fallback={info?.name?.[0] || "T"}
borderColor={connectionIdToColor(connectionId)}
/>
);
})}

{currentUser && (
<UserAvatar
// borderColor={connectionIdToColor(currentUser.connectionId)}
borderColor={connectionIdToColor(currentUser.connectionId)}
src={currentUser.info?.picture}
name={`${currentUser.info?.name} (You)`}
fallback={currentUser.info?.name?.[0]}
Expand Down

0 comments on commit 7261a05

Please sign in to comment.