Skip to content

Commit

Permalink
chore: Remove redundant close button
Browse files Browse the repository at this point in the history
The back buttons/gestures are enough and more standard.
The close button previously removed picked files after
a popup confirmation, which requires the same amount of steps
as going back twice.
  • Loading branch information
LouisCAD committed Mar 5, 2025
1 parent 4f760e9 commit b754c35
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ fun UploadRetryScreen(
when (val error: UploadState.Retry = errorState.value) {
is UploadState.Retry.EmailValidationRequired -> {
ValidateUserEmailScreen(
cancelTransfer = cancel,
editTransfer = edit,
state = error
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ private val MAX_LAYOUT_WIDTH = 400.dp

@Composable
fun ValidateUserEmailScreen(
cancelTransfer: () -> Unit,
editTransfer: () -> Unit,
state: UploadState.Retry.EmailValidationRequired,
viewModel: ValidateUserEmailViewModel = hiltViewModel(),
Expand Down Expand Up @@ -88,7 +87,6 @@ fun ValidateUserEmailScreen(
isInvalidVerificationCode = { isInvalidVerificationCode },
snackbarHostState = snackbarHostState,
navigateBack = editTransfer,
exitNewTransfer = cancelTransfer,
onResendEmailCode = {
scope.launch {
snackbarHostState.showSnackbar(
Expand Down Expand Up @@ -129,7 +127,6 @@ private fun ValidateUserEmailScreen(
isInvalidVerificationCode: () -> Boolean,
snackbarHostState: SnackbarHostState,
navigateBack: () -> Unit,
exitNewTransfer: () -> Unit,
onResendEmailCode: () -> Unit,
) {
var otpCode by rememberSaveable { mutableStateOf("") }
Expand All @@ -142,7 +139,6 @@ private fun ValidateUserEmailScreen(
SwissTransferTopAppBar(
titleRes = R.string.transferTypeScreenTitle,
navigationIcon = { TopAppBarButtons.Back(onClick = navigateBack) },
actions = { TopAppBarButtons.Close(onClick = exitNewTransfer) },
)
},
topButton = {
Expand Down Expand Up @@ -247,7 +243,6 @@ private fun Preview() {
isInvalidVerificationCode = { false },
snackbarHostState = remember { SnackbarHostState() },
navigateBack = {},
exitNewTransfer = {},
onResendEmailCode = {},
)
}
Expand Down

0 comments on commit b754c35

Please sign in to comment.