feat: add profile screen (#5)

Reviewed-on: https://git.reya.su/reya/coop-mobile/pulls/5
This commit is contained in:
2026-05-27 06:22:14 +00:00
parent 1c08525dfc
commit a2a4433a9d
11 changed files with 336 additions and 7 deletions
@@ -54,6 +54,7 @@ import su.reya.coop.screens.MyQrScreen
import su.reya.coop.screens.NewChatScreen
import su.reya.coop.screens.NewIdentityScreen
import su.reya.coop.screens.OnboardingScreen
import su.reya.coop.screens.ProfileScreen
import su.reya.coop.screens.RelayScreen
import su.reya.coop.screens.ScanScreen
@@ -232,6 +233,13 @@ fun App() {
onBack = { navController.popBackStack() },
)
}
composable<Screen.Profile> { backStackEntry ->
val profile: Screen.Profile = backStackEntry.toRoute()
ProfileScreen(
pubkey = profile.pubkey,
onBack = { navController.popBackStack() },
)
}
composable<Screen.NewChat> { backStackEntry ->
NewChatScreen(
onBack = { navController.popBackStack() },