Skip to content

Commit

Permalink
update copy inviteCode
Browse files Browse the repository at this point in the history
  • Loading branch information
AderanFeng committed Feb 26, 2024
1 parent 909e9bc commit 5faef7a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ private fun RomeInfoDisplay(roomInfo: UIRoomInfo, onCopy: (String) -> Unit) {
RoomStatus.Started, RoomStatus.Paused -> stringResource(R.string.home_room_state_started)
RoomStatus.Stopped -> stringResource(R.string.home_room_state_end)
}
val inviteCode = roomInfo.inviteCode

Spacer(modifier = Modifier.height(16.dp))
Row(Modifier.padding(horizontal = 16.dp)) {
Expand All @@ -209,10 +210,10 @@ private fun RomeInfoDisplay(roomInfo: UIRoomInfo, onCopy: (String) -> Unit) {
FlatTextSubtitle(stringResource(R.string.room_id))
Spacer(Modifier.height(8.dp))
Row(
Modifier.clickable { onCopy(roomInfo.roomUUID) },
Modifier.clickable { onCopy(inviteCode) },
verticalAlignment = Alignment.CenterVertically
) {
FlatTextBodyTwo(roomInfo.inviteCode.toInviteCodeDisplay(), color = FlatTheme.colors.textPrimary)
FlatTextBodyTwo(inviteCode.toInviteCodeDisplay(), color = FlatTheme.colors.textPrimary)
Spacer(Modifier.width(8.dp))
Image(painterResource(R.drawable.ic_room_detail_copy), contentDescription = "")
}
Expand Down

0 comments on commit 5faef7a

Please sign in to comment.