mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-06-04 13:49:13 +02:00
Moves Relay and User Metadata update buttons from Post to Save.
This commit is contained in:
parent
10a0dc7f8a
commit
5b0fc7982b
@ -1279,12 +1279,9 @@ fun PostButton(onPost: () -> Unit = {}, isActive: Boolean, modifier: Modifier =
|
|||||||
Button(
|
Button(
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
enabled = isActive,
|
enabled = isActive,
|
||||||
onClick = {
|
onClick = onPost
|
||||||
onPost()
|
|
||||||
},
|
|
||||||
shape = ButtonBorder
|
|
||||||
) {
|
) {
|
||||||
Text(text = stringResource(R.string.post), color = Color.White)
|
Text(text = stringResource(R.string.post))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,8 +103,7 @@ fun NewRelayListView(onClose: () -> Unit, accountViewModel: AccountViewModel, re
|
|||||||
title = {
|
title = {
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth(),
|
||||||
.padding(end = 10.dp),
|
|
||||||
horizontalArrangement = Arrangement.SpaceBetween,
|
horizontalArrangement = Arrangement.SpaceBetween,
|
||||||
verticalAlignment = Alignment.CenterVertically
|
verticalAlignment = Alignment.CenterVertically
|
||||||
) {
|
) {
|
||||||
@ -122,7 +121,7 @@ fun NewRelayListView(onClose: () -> Unit, accountViewModel: AccountViewModel, re
|
|||||||
Text(stringResource(R.string.default_relays))
|
Text(stringResource(R.string.default_relays))
|
||||||
}
|
}
|
||||||
|
|
||||||
PostButton(
|
SaveButton(
|
||||||
onPost = {
|
onPost = {
|
||||||
postViewModel.create()
|
postViewModel.create()
|
||||||
onClose()
|
onClose()
|
||||||
|
@ -72,7 +72,7 @@ fun NewUserMetadataView(onClose: () -> Unit, account: Account) {
|
|||||||
onClose()
|
onClose()
|
||||||
})
|
})
|
||||||
|
|
||||||
PostButton(
|
SaveButton(
|
||||||
onPost = {
|
onPost = {
|
||||||
postViewModel.create()
|
postViewModel.create()
|
||||||
onClose()
|
onClose()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user