use a floating button from active relays -> default relays

This commit is contained in:
greenart7c3
2024-11-23 13:18:47 -03:00
parent 9ff621203b
commit 50e6b35187
2 changed files with 25 additions and 7 deletions
@@ -713,6 +713,31 @@ fun MainScreen(
navController.navigate(Route.NewApplication.route)
},
)
} else if (navBackStackEntry?.destination?.route == Route.ActiveRelays.route) {
Column(
horizontalAlignment = Alignment.End,
) {
FloatingActionButton(
modifier = Modifier
.padding(end = 8.dp),
elevation = FloatingActionButtonDefaults.elevation(
defaultElevation = 0.dp,
focusedElevation = 0.dp,
hoveredElevation = 0.dp,
pressedElevation = 0.dp,
),
onClick = {
navController.navigate(Route.DefaultRelays.route)
},
shape = RoundedCornerShape(24),
) {
Icon(
ImageVector.vectorResource(R.drawable.settings),
contentDescription = stringResource(R.string.connect_app),
tint = Color.Black,
)
}
}
}
},
) { padding ->
@@ -27,13 +27,6 @@ fun RelaysScreen(
},
)
AmberButton(
text = stringResource(R.string.default_relays),
onClick = {
navController.navigate(Route.DefaultRelays.route)
},
)
AmberButton(
text = stringResource(R.string.default_profile_relays),
onClick = {