diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/upload/UploadSuccessEmailScreen.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/upload/UploadSuccessEmailScreen.kt index 56df0e153..0e442f7b9 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/upload/UploadSuccessEmailScreen.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/upload/UploadSuccessEmailScreen.kt @@ -50,34 +50,30 @@ fun UploadSuccessEmailScreen( onClick = closeActivity, ) }, - content = { Content(emails) }, - ) -} - -@Composable -private fun Content(emails: List) { - Column( - modifier = Modifier - .fillMaxSize() - .verticalScroll(rememberScrollState()) - .padding(Margin.Medium), - horizontalAlignment = Alignment.CenterHorizontally, - verticalArrangement = Arrangement.Center, ) { + Column( + modifier = Modifier + .fillMaxSize() + .verticalScroll(rememberScrollState()) + .padding(Margin.Medium), + horizontalAlignment = Alignment.CenterHorizontally, + verticalArrangement = Arrangement.Center, + ) { - IllustratedMessageBlock( - icon = AppIllus.Beers.image(), - title = TransferType.MAIL.titleRes, - description = pluralStringResource(TransferType.MAIL.descriptionRes!!, emails.count()), - ) + IllustratedMessageBlock( + icon = AppIllus.Beers.image(), + title = TransferType.MAIL.titleRes, + description = pluralStringResource(TransferType.MAIL.descriptionRes!!, emails.count()), + ) - Spacer(modifier = Modifier.height(Margin.Medium)) + Spacer(modifier = Modifier.height(Margin.Medium)) - EmailsFlowRow( - emails = emails, - modifier = Modifier.widthIn(max = 800.dp), - horizontalArrangement = Arrangement.Center, - ) + EmailsFlowRow( + emails = emails, + modifier = Modifier.widthIn(max = 800.dp), + horizontalArrangement = Arrangement.Center, + ) + } } }