Skip to content

Commit

Permalink
[CHORE/#37] InternItem 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
boiledEgg-s committed Jul 11, 2024
1 parent ecf16b3 commit 8b77265
Showing 1 changed file with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -51,7 +41,8 @@ fun InternItem(
workingPeriod: String,
isScraped: Boolean,
modifier: Modifier = Modifier,
onScrapButtonClicked: () -> Unit = {},
scrapId: Int = 0,
onScrapButtonClicked: (Int) -> Unit = {},
) {
Row(
modifier = modifier
Expand Down Expand Up @@ -121,7 +112,7 @@ fun InternItem(
modifier = modifier
.align(Alignment.BottomEnd)
.noRippleClickable {
onScrapButtonClicked()
onScrapButtonClicked(scrapId)
},
)
}
Expand Down

0 comments on commit 8b77265

Please sign in to comment.