Fix inconsistencies

This commit is contained in:
Wolf-Martell Montwé 2023-06-01 17:44:45 +02:00
parent dbe09a9ac2
commit 608cf6d3da
No known key found for this signature in database
GPG key ID: 6D45B21512ACBF72
2 changed files with 4 additions and 3 deletions

View file

@ -15,6 +15,7 @@ fun PasswordInput(
onPasswordChange: (String) -> Unit,
modifier: Modifier = Modifier,
password: String = "",
isRequired: Boolean = false,
errorMessage: String? = null,
contentPadding: PaddingValues = inputContentPadding(),
) {
@ -27,6 +28,7 @@ fun PasswordInput(
value = password,
onValueChange = onPasswordChange,
label = stringResource(id = R.string.designsystem_molecule_password_input_label),
isRequired = isRequired,
hasError = errorMessage != null,
modifier = Modifier.fillMaxWidth(),
)

View file

@ -17,7 +17,6 @@ import app.k9mail.core.ui.compose.designsystem.template.ResponsiveWidthContainer
import app.k9mail.core.ui.compose.theme.K9Theme
import app.k9mail.core.ui.compose.theme.MainTheme
import app.k9mail.core.ui.compose.theme.ThunderbirdTheme
import app.k9mail.feature.account.setup.ui.outgoing.AccountOutgoingConfigContent
@Composable
internal fun AccountIncomingConfigContent(
@ -49,7 +48,7 @@ internal fun AccountIncomingConfigContent(
@DevicePreviews
internal fun AccountIncomingConfigContentK9Preview() {
K9Theme {
AccountOutgoingConfigContent(
AccountIncomingConfigContent(
contentPadding = PaddingValues(),
)
}
@ -59,7 +58,7 @@ internal fun AccountIncomingConfigContentK9Preview() {
@DevicePreviews
internal fun AccountIncomingConfigContentThunderbirdPreview() {
ThunderbirdTheme {
AccountOutgoingConfigContent(
AccountIncomingConfigContent(
contentPadding = PaddingValues(),
)
}