From 8cac0638070c0b09f8da527d03618c374f3095d8 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Tue, 12 Jun 2018 11:02:33 +0200 Subject: Add title for player placeholders --- frontend/src/components/lobby/RadialPlayerList.jsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'frontend/src/components/lobby') diff --git a/frontend/src/components/lobby/RadialPlayerList.jsx b/frontend/src/components/lobby/RadialPlayerList.jsx index 911c0d91..8345b48c 100644 --- a/frontend/src/components/lobby/RadialPlayerList.jsx +++ b/frontend/src/components/lobby/RadialPlayerList.jsx @@ -15,21 +15,20 @@ type RadialPlayerListProps = { const PlayerItem = ({player, isOwner, isUser}) => ( - +
{player.displayName}
); const PlayerPlaceholder = () => ( - +
?
); -const UserIcon = ({isUser, isOwner}) => { +const UserIcon = ({isUser, isOwner, title}) => { const icon = isOwner ? 'badge' : 'user'; - const title = isOwner ? 'Game owner' : false; const intent = isUser ? 'warning' : 'none'; return ; }; -- cgit