From 9be7b3f6ee7604ceb7c36496ba5896e0b504596c Mon Sep 17 00:00:00 2001 From: flash159483 Date: Sun, 18 Aug 2024 16:42:22 +0900 Subject: [PATCH] =?UTF-8?q?[FEAT]#111:=20Lint=EC=97=90=20=EB=94=B0?= =?UTF-8?q?=EB=9D=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bff/wespot/designsystem/component/input/WsTextField.kt | 7 +++---- .../main/kotlin/com/bff/wespot/auth/screen/GradeScreen.kt | 2 +- .../com/bff/wespot/entire/screen/edit/ProfileEditScreen.kt | 4 ++-- .../java/com/bff/wespot/vote/screen/VoteResultScreen.kt | 6 +++--- .../main/java/com/bff/wespot/vote/screen/VotingScreen.kt | 1 - 5 files changed, 9 insertions(+), 11 deletions(-) diff --git a/designsystem/src/main/kotlin/com/bff/wespot/designsystem/component/input/WsTextField.kt b/designsystem/src/main/kotlin/com/bff/wespot/designsystem/component/input/WsTextField.kt index 6f38472b..dfa0d735 100644 --- a/designsystem/src/main/kotlin/com/bff/wespot/designsystem/component/input/WsTextField.kt +++ b/designsystem/src/main/kotlin/com/bff/wespot/designsystem/component/input/WsTextField.kt @@ -163,11 +163,11 @@ fun WsTextField( interactionSource, colors, WeSpotThemeManager.shapes.small, - focusedBorderThickness = 1.dp + focusedBorderThickness = 1.dp, ) - } + }, ) - } + }, ) } } @@ -179,7 +179,6 @@ private fun cursorColor(isError: Boolean): State { return rememberUpdatedState(if (isError) color.errorCursorColor else color.cursorColor) } - sealed interface WsTextFieldType { @Composable fun trailingIcon(): Painter? diff --git a/feature/auth/src/main/kotlin/com/bff/wespot/auth/screen/GradeScreen.kt b/feature/auth/src/main/kotlin/com/bff/wespot/auth/screen/GradeScreen.kt index 6f2b2e6a..fda7c96e 100644 --- a/feature/auth/src/main/kotlin/com/bff/wespot/auth/screen/GradeScreen.kt +++ b/feature/auth/src/main/kotlin/com/bff/wespot/auth/screen/GradeScreen.kt @@ -116,7 +116,7 @@ fun GradeScreen( TopToast( message = stringResource(id = R.string.more_than_14_to_register), toastType = WSToastType.Error, - showToast = toast + showToast = toast, ) { toast = false } diff --git a/feature/entire/src/main/java/com/bff/wespot/entire/screen/edit/ProfileEditScreen.kt b/feature/entire/src/main/java/com/bff/wespot/entire/screen/edit/ProfileEditScreen.kt index 8d43bcb8..2611e436 100644 --- a/feature/entire/src/main/java/com/bff/wespot/entire/screen/edit/ProfileEditScreen.kt +++ b/feature/entire/src/main/java/com/bff/wespot/entire/screen/edit/ProfileEditScreen.kt @@ -213,7 +213,7 @@ fun ProfileEditScreen( action(EntireEditAction.OnIntroductionEditDoneButtonClicked) }, enabled = - isEdited && + isEdited && state.hasProfanity.not() && state.introductionInput.length in 1..20, text = stringResource(id = R.string.edit_done), @@ -234,7 +234,7 @@ fun ProfileEditScreen( TopToast( message = stringResource(toast.message), toastType = toast.type, - showToast = toast.show + showToast = toast.show, ) { toast = toast.copy(show = false) } diff --git a/feature/vote/src/main/java/com/bff/wespot/vote/screen/VoteResultScreen.kt b/feature/vote/src/main/java/com/bff/wespot/vote/screen/VoteResultScreen.kt index e1045a89..86f14d27 100644 --- a/feature/vote/src/main/java/com/bff/wespot/vote/screen/VoteResultScreen.kt +++ b/feature/vote/src/main/java/com/bff/wespot/vote/screen/VoteResultScreen.kt @@ -306,8 +306,8 @@ fun VoteResultScreen( launcher.launch( navigator.navigateToInstaStory( context, - uri - ) + uri, + ), ) }.onFailure { navigator.redirectToPlayStoreForInstagram(context) @@ -598,7 +598,7 @@ private fun EmptyCard(rank: Int) { } else { 42.dp }, - ) + ), ) { if (rank == 2) { Image( diff --git a/feature/vote/src/main/java/com/bff/wespot/vote/screen/VotingScreen.kt b/feature/vote/src/main/java/com/bff/wespot/vote/screen/VotingScreen.kt index 3d8faa11..87a8dc63 100644 --- a/feature/vote/src/main/java/com/bff/wespot/vote/screen/VotingScreen.kt +++ b/feature/vote/src/main/java/com/bff/wespot/vote/screen/VotingScreen.kt @@ -164,7 +164,6 @@ fun VotingScreen( toast = false } - if (state.loading) { LoadingAnimation() }