From 3d18f8e492b0183670ae0dae1eea6297e28ef3d8 Mon Sep 17 00:00:00 2001 From: jeongjaino Date: Tue, 9 Jan 2024 15:21:58 +0900 Subject: [PATCH] =?UTF-8?q?[CHORE]=20#93=20:=20UnUsed=20Import=20=EC=86=8C?= =?UTF-8?q?=EA=B1=B0=20=EB=B0=8F=20=EB=8B=A8=EC=9D=BC=20=ED=91=9C=ED=98=84?= =?UTF-8?q?=EC=8B=9D=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wapp/feature/management/ManagementScreen.kt | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/feature/management/src/main/java/com/wap/wapp/feature/management/ManagementScreen.kt b/feature/management/src/main/java/com/wap/wapp/feature/management/ManagementScreen.kt index 69a61d1cf..3e709ce8c 100644 --- a/feature/management/src/main/java/com/wap/wapp/feature/management/ManagementScreen.kt +++ b/feature/management/src/main/java/com/wap/wapp/feature/management/ManagementScreen.kt @@ -4,15 +4,11 @@ package com.wap.wapp.feature.management import android.content.Context import android.widget.Toast import androidx.compose.foundation.layout.Column -import androidx.compose.foundation.layout.WindowInsets import androidx.compose.foundation.layout.padding import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Scaffold import androidx.compose.material3.SnackbarHost import androidx.compose.material3.SnackbarHostState -import androidx.compose.material3.Text -import androidx.compose.material3.TopAppBar -import androidx.compose.material3.TopAppBarDefaults import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.getValue @@ -23,8 +19,6 @@ import androidx.compose.runtime.setValue import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.platform.LocalContext -import androidx.compose.ui.res.stringResource -import androidx.compose.ui.unit.dp import androidx.hilt.navigation.compose.hiltViewModel import androidx.lifecycle.compose.collectAsStateWithLifecycle import com.wap.designsystem.WappTheme @@ -125,14 +119,12 @@ internal fun ManagementScreen( } @Composable -internal fun ManagementCardColor(currentIndex: Int): Color { - return if (currentIndex % 2 == 0) { +internal fun ManagementCardColor(currentIndex: Int): Color = + if (currentIndex % 2 == 0) { WappTheme.colors.black82 } else { WappTheme.colors.black42 } -} -private fun showToast(text: String, context: Context) { +private fun showToast(text: String, context: Context) = Toast.makeText(context, text, Toast.LENGTH_SHORT).show() -}