mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 19:08:23 +00:00
use a floating button from active relays -> default relays
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user