Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into fix/#173-home-text…
Browse files Browse the repository at this point in the history
…-style
  • Loading branch information
Hyobeen-Park committed Jul 19, 2024
2 parents a3d7e9a + 5770e7e commit bcb7227
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 bcb7227

Please sign in to comment.