Commit 7e6cb0ea authored by Chunchi Che's avatar Chunchi Che

update WaitRoom.tsx

parent c53d5c21
Pipeline #23011 passed with stages
in 14 minutes and 19 seconds
...@@ -136,24 +136,28 @@ export const Component: React.FC = () => { ...@@ -136,24 +136,28 @@ export const Component: React.FC = () => {
) )
} }
/> />
<PlayerZone {room.players
who={Who.Op} .filter((player) => player !== undefined && !player.isMe)
player={op} .map((player) => (
btn={ <PlayerZone
room.stage === RoomStage.WAITING ? ( who={Who.Op}
<></> player={player}
) : ( btn={
<MoraAvatar room.stage === RoomStage.WAITING ? (
mora={ <></>
op?.moraResult !== undefined && ) : (
op.moraResult !== HandType.UNKNOWN <MoraAvatar
? Object.values(Mora)[op.moraResult - 1] mora={
: undefined op?.moraResult !== undefined &&
} op.moraResult !== HandType.UNKNOWN
/> ? Object.values(Mora)[op.moraResult - 1]
) : undefined
} }
/> />
)
}
/>
))}
</div> </div>
<ActionButton <ActionButton
onMoraSelect={(mora) => { onMoraSelect={(mora) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment