From 856103479c5e18b0174be7af31a2cf2f816695cd Mon Sep 17 00:00:00 2001 From: cketti Date: Wed, 8 May 2024 16:53:26 +0200 Subject: [PATCH] Remove unused `SuccessView` --- .../common/ui/view/SuccessViewPreview.kt | 15 ------- .../account/common/ui/view/SuccessView.kt | 45 ------------------- 2 files changed, 60 deletions(-) delete mode 100644 feature/account/common/src/debug/kotlin/app/k9mail/feature/account/common/ui/view/SuccessViewPreview.kt delete mode 100644 feature/account/common/src/main/kotlin/app/k9mail/feature/account/common/ui/view/SuccessView.kt 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), - ) - } - } -}