diff --git a/feature/account/common/src/debug/kotlin/app/k9mail/feature/account/common/ui/view/SuccessViewPreview.kt b/feature/account/common/src/debug/kotlin/app/k9mail/feature/account/common/ui/view/SuccessViewPreview.kt deleted file mode 100644 index 4d04215b8..000000000 --- a/feature/account/common/src/debug/kotlin/app/k9mail/feature/account/common/ui/view/SuccessViewPreview.kt +++ /dev/null @@ -1,15 +0,0 @@ -package app.k9mail.feature.account.common.ui.view - -import androidx.compose.runtime.Composable -import androidx.compose.ui.tooling.preview.Preview -import app.k9mail.core.ui.compose.designsystem.PreviewWithThemes - -@Composable -@Preview(showBackground = true) -internal fun SuccessViewPreview() { - PreviewWithThemes { - SuccessView( - message = "The app tried really hard and managed to successfully complete the operation.", - ) - } -} diff --git a/feature/account/common/src/main/kotlin/app/k9mail/feature/account/common/ui/view/SuccessView.kt b/feature/account/common/src/main/kotlin/app/k9mail/feature/account/common/ui/view/SuccessView.kt deleted file mode 100644 index da25f6d20..000000000 --- a/feature/account/common/src/main/kotlin/app/k9mail/feature/account/common/ui/view/SuccessView.kt +++ /dev/null @@ -1,45 +0,0 @@ -package app.k9mail.feature.account.common.ui.view - -import androidx.compose.foundation.layout.Column -import androidx.compose.foundation.layout.Row -import androidx.compose.foundation.layout.fillMaxWidth -import androidx.compose.foundation.layout.height -import androidx.compose.foundation.layout.padding -import androidx.compose.foundation.layout.requiredSize -import androidx.compose.runtime.Composable -import androidx.compose.ui.Alignment -import androidx.compose.ui.Modifier -import androidx.compose.ui.text.style.TextAlign -import app.k9mail.core.ui.compose.designsystem.atom.icon.Icon -import app.k9mail.core.ui.compose.designsystem.atom.icon.Icons -import app.k9mail.core.ui.compose.designsystem.atom.text.TextTitleMedium -import app.k9mail.core.ui.compose.theme2.MainTheme - -@Composable -fun SuccessView( - message: String, - modifier: Modifier = Modifier, -) { - Column( - modifier = Modifier - .fillMaxWidth() - .padding(MainTheme.spacings.default) - .then(modifier), - horizontalAlignment = Alignment.CenterHorizontally, - ) { - TextTitleMedium( - text = message, - textAlign = TextAlign.Center, - ) - Row( - modifier = Modifier.height(MainTheme.sizes.larger), - verticalAlignment = Alignment.CenterVertically, - ) { - Icon( - imageVector = Icons.Outlined.Celebration, - tint = MainTheme.colors.secondary, - modifier = Modifier.requiredSize(MainTheme.sizes.large), - ) - } - } -}