Skip to content

Commit

Permalink
[MERGE] #171 -> develop
Browse files Browse the repository at this point in the history
[FIX/#171] 슀크랩 였λ₯˜ μˆ˜μ •
  • Loading branch information
boiledEgg-s authored Jul 19, 2024
2 parents ae90217 + b7ae40a commit 5770e7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import androidx.compose.runtime.getValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.painterResource
Expand Down Expand Up @@ -52,6 +53,7 @@ import com.terning.feature.intern.component.InternInfoRow
fun HomeRecommendInternDialog(
internInfoList: List<Pair<String, String>>,
clickAction: () -> Unit,
onColorSelected:(Color) -> Unit = {},
homeRecommendInternModel: HomeRecommendInternModel,
viewModel: HomeViewModel = hiltViewModel(),
) {
Expand Down Expand Up @@ -171,6 +173,7 @@ fun HomeRecommendInternDialog(
initialColor = CalRed,
onColorSelected = { newColor ->
viewModel.updateSelectColor(newColor)
onColorSelected(newColor)
}
)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.terning.feature.search.searchprocess

import android.util.Log
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
Expand Down Expand Up @@ -352,12 +353,14 @@ fun SearchProcessScreen(
)
viewModel.updateColorChange(false)
} else {
viewModel.postScrap(internshipAnnouncementId, 0)

viewModel.postScrap(internshipAnnouncementId, colorList.indexOf(dialogState.selectedColor))
}
viewModel.updateScrapDialogVisible(false)
}
},
onColorSelected = { newColor ->
viewModel.updateSelectColor(newColor)
},
homeRecommendInternModel = HomeRecommendInternModel(
scrapId = scrapId,
internshipAnnouncementId = internshipAnnouncementId,
Expand Down

0 comments on commit 5770e7e

Please sign in to comment.