From 8b77265816b83d2b540d1c43a2768e40e677eeba Mon Sep 17 00:00:00 2001 From: boiledegg Date: Fri, 12 Jul 2024 03:24:10 +0900 Subject: [PATCH] =?UTF-8?q?[CHORE/#37]=20InternItem=20=EB=A1=9C=EC=A7=81?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../designsystem/component/item/InternItem.kt | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/core/src/main/java/com/terning/core/designsystem/component/item/InternItem.kt b/core/src/main/java/com/terning/core/designsystem/component/item/InternItem.kt index 8bfab6919..1e659b21d 100644 --- a/core/src/main/java/com/terning/core/designsystem/component/item/InternItem.kt +++ b/core/src/main/java/com/terning/core/designsystem/component/item/InternItem.kt @@ -2,22 +2,16 @@ package com.terning.core.designsystem.component.item import androidx.compose.foundation.Image import androidx.compose.foundation.background -import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row -import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.aspectRatio import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.padding -import androidx.compose.foundation.layout.width import androidx.compose.foundation.shape.RoundedCornerShape -import androidx.compose.material.icons.Icons -import androidx.compose.material.icons.filled.* -import androidx.compose.material.icons.outlined.Star import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment @@ -26,12 +20,8 @@ import androidx.compose.ui.draw.clip import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource -import androidx.compose.ui.text.SpanStyle -import androidx.compose.ui.text.buildAnnotatedString -import androidx.compose.ui.text.withStyle import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.unit.dp -import androidx.core.text.buildSpannedString import coil.compose.AsyncImage import coil.request.ImageRequest import com.terning.core.R @@ -51,7 +41,8 @@ fun InternItem( workingPeriod: String, isScraped: Boolean, modifier: Modifier = Modifier, - onScrapButtonClicked: () -> Unit = {}, + scrapId: Int = 0, + onScrapButtonClicked: (Int) -> Unit = {}, ) { Row( modifier = modifier @@ -121,7 +112,7 @@ fun InternItem( modifier = modifier .align(Alignment.BottomEnd) .noRippleClickable { - onScrapButtonClicked() + onScrapButtonClicked(scrapId) }, ) }