Moves message button to Profile Actions

This commit is contained in:
Vitor Pamplona
2025-10-29 15:19:11 -04:00
parent a913194c41
commit 6d8b5fa85d
2 changed files with 3 additions and 5 deletions

View File

@@ -47,6 +47,8 @@ fun ProfileActions(
accountViewModel: AccountViewModel,
nav: INav,
) {
MessageButton(baseUser, accountViewModel, nav)
val isMe by
remember(accountViewModel) { derivedStateOf { accountViewModel.userProfile() == baseUser } }

View File

@@ -25,7 +25,6 @@ import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
@@ -123,6 +122,7 @@ fun ProfileHeader(
.padding(top = 100.dp),
) {
Row(
modifier = Modifier.fillMaxWidth(),
horizontalArrangement = Arrangement.SpaceBetween,
verticalAlignment = Alignment.Bottom,
) {
@@ -149,16 +149,12 @@ fun ProfileHeader(
},
)
Spacer(Modifier.weight(1f))
Row(
modifier =
Modifier
.height(Size35dp)
.padding(bottom = 3.dp),
) {
MessageButton(baseUser, accountViewModel, nav)
ProfileActions(baseUser, accountViewModel, nav)
}
}