Skip to content

Commit

Permalink
refactor: adjust screen size
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgeTranin committed Sep 5, 2024
1 parent a0d7d84 commit 93f5669
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ fun AwaitingCodeScreen(arg: String?, navController: NavController) {

LaunchedEffect(key1 = context) {
if (arg != null) {
viewModel.onEvent(AwaitingCodeFormEvent.EmailChanged(arg))
// viewModel.onEvent(AwaitingCodeFormEvent.EmailChanged(arg))
} else {
navController.navigateUp()
// navController.navigateUp()
}
viewModel.validationEvents.collect { event ->
when (event) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fun Footer(navController: NavController, viewModel: AwaitingCodeViewModel) {
val buttonIsEnable by viewModel.buttonIsEnable.collectAsState()
val taskState by viewModel.taskState.collectAsState()
val isDarkMode = isSystemInDarkTheme()
Spacer(modifier = Modifier.padding(20.sdp))
Spacer(modifier = Modifier.padding(10.sdp))
Row {
Button3(
submit = { navController.popBackStack() },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ fun Screen(navController: NavController, viewModel: AwaitingCodeViewModel) {
}
}
item {
Spacer(modifier = Modifier.height(70.sdp))
Spacer(modifier = Modifier.height(20.sdp))
Footer(navController = navController, viewModel = viewModel)

}
Expand Down

0 comments on commit 93f5669

Please sign in to comment.