Skip to content

Commit

Permalink
[CHORE] #93 : UnUsed Import 소거 및 단일 표현식 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Jan 9, 2024
1 parent 2e2f5b3 commit 3d18f8e
Showing 1 changed file with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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()
}

0 comments on commit 3d18f8e

Please sign in to comment.