From d28d2d054d998c22f4a3edbc1ed2a9de784bf0a8 Mon Sep 17 00:00:00 2001 From: Hyobeen-Park Date: Wed, 10 Jul 2024 17:35:34 +0900 Subject: [PATCH 01/12] =?UTF-8?q?[FEAT/#32]=20=EC=A0=95=EB=A0=AC=20?= =?UTF-8?q?=EB=B2=84=ED=8A=BC=20string=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/src/main/res/values/strings.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index a60fd53c1..25eec912a 100644 --- a/core/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml @@ -11,4 +11,12 @@ button + + 채용 마감 이른순 + 짧은 근무 기간순 + 긴 근무 기간순 + 스크랩 많은순 + 조회수 많은순 + + \ No newline at end of file From fdf7c4287123e762ae5d36f214917ec5eaac154f Mon Sep 17 00:00:00 2001 From: Hyobeen-Park Date: Wed, 10 Jul 2024 17:57:35 +0900 Subject: [PATCH 02/12] =?UTF-8?q?[ADD/#32]=20=EC=95=84=EC=9D=B4=EC=BD=98?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/src/main/res/drawable/ic_down.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 core/src/main/res/drawable/ic_down.xml diff --git a/core/src/main/res/drawable/ic_down.xml b/core/src/main/res/drawable/ic_down.xml new file mode 100644 index 000000000..e61fe7533 --- /dev/null +++ b/core/src/main/res/drawable/ic_down.xml @@ -0,0 +1,13 @@ + + + From 4617f1df8b0f039f01083032cb5a0095a86838aa Mon Sep 17 00:00:00 2001 From: Hyobeen-Park Date: Wed, 10 Jul 2024 21:48:36 +0900 Subject: [PATCH 03/12] =?UTF-8?q?[FEAT/#32]=20=EC=A0=95=EB=A0=AC=20?= =?UTF-8?q?=EA=B8=B0=EC=A4=80=20=EB=B2=84=ED=8A=BC=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/button/SortingButton.kt | 49 +++++++++++++++++++ core/src/main/res/values/strings.xml | 1 + 2 files changed, 50 insertions(+) create mode 100644 core/src/main/java/com/terning/core/designsystem/component/button/SortingButton.kt diff --git a/core/src/main/java/com/terning/core/designsystem/component/button/SortingButton.kt b/core/src/main/java/com/terning/core/designsystem/component/button/SortingButton.kt new file mode 100644 index 000000000..654f27026 --- /dev/null +++ b/core/src/main/java/com/terning/core/designsystem/component/button/SortingButton.kt @@ -0,0 +1,49 @@ +package com.terning.core.designsystem.component.button + +import androidx.compose.foundation.Image +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.padding +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Modifier +import androidx.compose.ui.res.painterResource +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.unit.dp +import com.terning.core.R +import com.terning.core.designsystem.theme.Black +import com.terning.core.designsystem.theme.TerningTheme + +@Composable +fun SortingButton( + sortBy: Int = 0, + modifier: Modifier = Modifier, +) { + Row { + Text( + text = stringResource( + id = when (sortBy) { + 1 -> R.string.sort_by_shortest + 2 -> R.string.sort_by_longest + 3 -> R.string.sort_by_scrap + 4 -> R.string.sort_by_view_count + else -> R.string.sort_by_earliest + } + ), + style = TerningTheme.typography.button3, + color = Black, + modifier = modifier + .padding( + top = 6.dp, + bottom = 5.dp, + start = 12.dp, + ) + ) + Image( + painter = painterResource(id = R.drawable.ic_down), + contentDescription = stringResource(id = R.string.sort_button_description), + modifier = modifier + .padding(vertical = 5.dp) + .padding(end = 2.dp) + ) + } +} diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index 25eec912a..b024a3af7 100644 --- a/core/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml @@ -17,6 +17,7 @@ 긴 근무 기간순 스크랩 많은순 조회수 많은순 + 정렬 기준 \ No newline at end of file From 729de300caaefcd188652354bcb7bf1eee97c9df Mon Sep 17 00:00:00 2001 From: Hyobeen-Park Date: Thu, 11 Jul 2024 03:15:50 +0900 Subject: [PATCH 04/12] =?UTF-8?q?[FEAT/#32]=20enum=20class=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../designsystem/component/bottomsheet/SortBy.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortBy.kt diff --git a/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortBy.kt b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortBy.kt new file mode 100644 index 000000000..3d6ce0916 --- /dev/null +++ b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortBy.kt @@ -0,0 +1,12 @@ +package com.terning.core.designsystem.component.bottomsheet + +import androidx.annotation.StringRes +import com.terning.core.R + +enum class SortBy(@StringRes val type: Int) { + EARLIEST(R.string.sort_by_earliest), + SHORTEST(R.string.sort_by_shortest), + LONGEST(R.string.sort_by_longest), + SCRAP(R.string.sort_by_scrap), + VIEW_COUNT(R.string.sort_by_view_count), +} \ No newline at end of file From 92fc9713e5a1eab18e80cc7dfa8e239ae60196d9 Mon Sep 17 00:00:00 2001 From: Hyobeen-Park Date: Thu, 11 Jul 2024 03:17:28 +0900 Subject: [PATCH 05/12] =?UTF-8?q?[CHORE/#32]=20TerningBasicBottomSheet=20?= =?UTF-8?q?=ED=8C=8C=EB=9D=BC=EB=AF=B8=ED=84=B0=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?=EB=B0=8F=20=EC=96=B4=EB=85=B8=ED=85=8C=EC=9D=B4=EC=85=98=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/bottomsheet/TerningBasicBottomSheet.kt | 10 +++++----- .../onboarding/signup/component/SignUpBottomSheet.kt | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/TerningBasicBottomSheet.kt b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/TerningBasicBottomSheet.kt index c922054a6..9342d18f3 100644 --- a/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/TerningBasicBottomSheet.kt +++ b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/TerningBasicBottomSheet.kt @@ -1,27 +1,27 @@ package com.terning.core.designsystem.component.bottomsheet -import androidx.compose.foundation.layout.navigationBarsPadding import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.ModalBottomSheet +import androidx.compose.material3.SheetState import androidx.compose.material3.rememberModalBottomSheetState import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier +import com.terning.core.designsystem.theme.White @OptIn(ExperimentalMaterial3Api::class) @Composable fun TerningBasicBottomSheet( modifier: Modifier = Modifier, content: @Composable () -> Unit, - onDismissRequest: () -> Unit + onDismissRequest: () -> Unit, + sheetState: SheetState = rememberModalBottomSheetState() ) { - val sheetState = rememberModalBottomSheetState() - ModalBottomSheet( onDismissRequest = { onDismissRequest() }, sheetState = sheetState, - modifier = modifier.navigationBarsPadding() + containerColor = White, ) { content() } diff --git a/feature/src/main/java/com/terning/feature/onboarding/signup/component/SignUpBottomSheet.kt b/feature/src/main/java/com/terning/feature/onboarding/signup/component/SignUpBottomSheet.kt index 1cd62a4be..cfc257be2 100644 --- a/feature/src/main/java/com/terning/feature/onboarding/signup/component/SignUpBottomSheet.kt +++ b/feature/src/main/java/com/terning/feature/onboarding/signup/component/SignUpBottomSheet.kt @@ -9,6 +9,7 @@ import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.grid.GridCells import androidx.compose.foundation.lazy.grid.LazyVerticalGrid import androidx.compose.foundation.lazy.grid.items +import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue @@ -25,6 +26,7 @@ import com.terning.core.designsystem.theme.TerningTheme import com.terning.core.extension.noRippleClickable import com.terning.feature.R +@OptIn(ExperimentalMaterial3Api::class) @Composable fun SignUpBottomSheet( modifier: Modifier = Modifier, From 8d85dc81aa5853d062be21df171c55866f87f8f4 Mon Sep 17 00:00:00 2001 From: Hyobeen-Park Date: Thu, 11 Jul 2024 03:18:48 +0900 Subject: [PATCH 06/12] =?UTF-8?q?[FEAT/#32]=20=EA=B3=B5=EA=B3=A0=20?= =?UTF-8?q?=EC=A0=95=EB=A0=AC=20=EB=B0=94=ED=85=80=EC=8B=9C=ED=8A=B8=20?= =?UTF-8?q?=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bottomsheet/SortingBottomSheet.kt | 91 +++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortingBottomSheet.kt diff --git a/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortingBottomSheet.kt b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortingBottomSheet.kt new file mode 100644 index 000000000..067f576c1 --- /dev/null +++ b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortingBottomSheet.kt @@ -0,0 +1,91 @@ +package com.terning.core.designsystem.component.bottomsheet + +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.lazy.LazyColumn +import androidx.compose.material3.ExperimentalMaterial3Api +import androidx.compose.material3.HorizontalDivider +import androidx.compose.material3.Text +import androidx.compose.material3.rememberModalBottomSheetState +import androidx.compose.runtime.Composable +import androidx.compose.runtime.MutableState +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableStateOf +import androidx.compose.runtime.remember +import androidx.compose.runtime.rememberCoroutineScope +import androidx.compose.runtime.setValue +import androidx.compose.ui.Modifier +import androidx.compose.ui.res.stringResource +import androidx.compose.ui.text.style.TextAlign +import androidx.compose.ui.unit.dp +import com.terning.core.designsystem.theme.Black +import com.terning.core.designsystem.theme.Grey200 +import com.terning.core.designsystem.theme.Grey400 +import com.terning.core.designsystem.theme.TerningMain +import com.terning.core.designsystem.theme.TerningTheme +import com.terning.core.extension.noRippleClickable +import kotlinx.coroutines.launch + +@OptIn(ExperimentalMaterial3Api::class) +@Composable +fun SortingBottomSheet( + modifier: Modifier = Modifier, + onDismiss: () -> Unit, + currentSortBy: Int, + newSortBy: MutableState = mutableStateOf(currentSortBy), +) { + val scope = rememberCoroutineScope() + val sheetState = rememberModalBottomSheetState() + var currentSortBy by remember { mutableStateOf(currentSortBy) } + + TerningBasicBottomSheet( + content = { + Text( + text = "공고 정렬 순서", + style = TerningTheme.typography.title2, + color = Black, + modifier = modifier + .padding(start = 27.dp, bottom = 16.dp) + ) + + HorizontalDivider( + thickness = 1.dp, + color = Grey200, + modifier = modifier.padding(horizontal = 24.dp) + ) + + LazyColumn( + modifier = modifier + .padding(top = 12.dp, bottom = 19.dp) + .padding(horizontal = 24.dp), + verticalArrangement = Arrangement.spacedBy(8.dp) + ) { + items(5) { sortIndex -> + Text( + text = stringResource(id = SortBy.entries[sortIndex].type), + style = TerningTheme.typography.button3, + color = if (currentSortBy == sortIndex) TerningMain else Grey400, + textAlign = TextAlign.Start, + modifier = modifier + .fillMaxWidth() + .padding(start = 3.dp) + .padding(vertical = 12.dp) + .noRippleClickable { + newSortBy.value = sortIndex + scope + .launch { sheetState.hide() } + .invokeOnCompletion { + if (!sheetState.isVisible) { + onDismiss() + } + } + } + ) + } + } + }, + onDismissRequest = { onDismiss() }, + sheetState = sheetState + ) +} \ No newline at end of file From 69b88a94521a74ec738f016ef38c907782b7d556 Mon Sep 17 00:00:00 2001 From: Hyobeen-Park Date: Thu, 11 Jul 2024 03:20:58 +0900 Subject: [PATCH 07/12] =?UTF-8?q?[CHORE/#32]=20string=20=EC=B6=94=EC=B6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../designsystem/component/bottomsheet/SortingBottomSheet.kt | 3 ++- core/src/main/res/values/strings.xml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortingBottomSheet.kt b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortingBottomSheet.kt index 067f576c1..1682fc739 100644 --- a/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortingBottomSheet.kt +++ b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortingBottomSheet.kt @@ -19,6 +19,7 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.unit.dp +import com.terning.core.R import com.terning.core.designsystem.theme.Black import com.terning.core.designsystem.theme.Grey200 import com.terning.core.designsystem.theme.Grey400 @@ -42,7 +43,7 @@ fun SortingBottomSheet( TerningBasicBottomSheet( content = { Text( - text = "공고 정렬 순서", + text = stringResource(id = R.string.sort_bottom_sheet_title), style = TerningTheme.typography.title2, color = Black, modifier = modifier diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index b024a3af7..faa2d3afc 100644 --- a/core/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml @@ -11,13 +11,13 @@ button - + 채용 마감 이른순 짧은 근무 기간순 긴 근무 기간순 스크랩 많은순 조회수 많은순 정렬 기준 - + 공고 정렬 순서 \ No newline at end of file From 2e9898e79432f1d9545aba22cbc23c7a55da94b3 Mon Sep 17 00:00:00 2001 From: Hyobeen-Park Date: Thu, 11 Jul 2024 03:30:55 +0900 Subject: [PATCH 08/12] =?UTF-8?q?[FEAT/#32]=20=EA=B3=B5=EA=B3=A0=20?= =?UTF-8?q?=EC=A0=95=EB=A0=AC=20=EB=B2=84=ED=8A=BC=20=ED=81=B4=EB=A6=AD?= =?UTF-8?q?=EC=9D=B4=EB=B2=A4=ED=8A=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/designsystem/component/button/SortingButton.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/terning/core/designsystem/component/button/SortingButton.kt b/core/src/main/java/com/terning/core/designsystem/component/button/SortingButton.kt index 654f27026..50e6cbc4d 100644 --- a/core/src/main/java/com/terning/core/designsystem/component/button/SortingButton.kt +++ b/core/src/main/java/com/terning/core/designsystem/component/button/SortingButton.kt @@ -1,6 +1,7 @@ package com.terning.core.designsystem.component.button import androidx.compose.foundation.Image +import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.padding import androidx.compose.material3.Text @@ -12,13 +13,18 @@ import androidx.compose.ui.unit.dp import com.terning.core.R import com.terning.core.designsystem.theme.Black import com.terning.core.designsystem.theme.TerningTheme +import com.terning.core.extension.noRippleClickable @Composable fun SortingButton( sortBy: Int = 0, modifier: Modifier = Modifier, + onCLick: () -> Unit, ) { - Row { + Row( + modifier = modifier + .noRippleClickable { onCLick() } + ) { Text( text = stringResource( id = when (sortBy) { From 750eb57c9e6443687bbc7b229ceee0ea15949dd9 Mon Sep 17 00:00:00 2001 From: Hyobeen-Park Date: Thu, 11 Jul 2024 20:51:52 +0900 Subject: [PATCH 09/12] =?UTF-8?q?[CHORE/#32]=20modifier=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/bottomsheet/TerningBasicBottomSheet.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/TerningBasicBottomSheet.kt b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/TerningBasicBottomSheet.kt index 9342d18f3..87e82c6aa 100644 --- a/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/TerningBasicBottomSheet.kt +++ b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/TerningBasicBottomSheet.kt @@ -11,7 +11,6 @@ import com.terning.core.designsystem.theme.White @OptIn(ExperimentalMaterial3Api::class) @Composable fun TerningBasicBottomSheet( - modifier: Modifier = Modifier, content: @Composable () -> Unit, onDismissRequest: () -> Unit, sheetState: SheetState = rememberModalBottomSheetState() From 2d4071e85fcf8a46c4ecf28176a14cf74ca179fc Mon Sep 17 00:00:00 2001 From: Hyobeen-Park Date: Thu, 11 Jul 2024 21:12:48 +0900 Subject: [PATCH 10/12] =?UTF-8?q?[MOD/#32]=20=EB=B2=84=ED=8A=BC=20text=20?= =?UTF-8?q?=EB=A1=9C=EC=A7=81=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../designsystem/component/button/SortingButton.kt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/core/src/main/java/com/terning/core/designsystem/component/button/SortingButton.kt b/core/src/main/java/com/terning/core/designsystem/component/button/SortingButton.kt index 50e6cbc4d..79c6c28f0 100644 --- a/core/src/main/java/com/terning/core/designsystem/component/button/SortingButton.kt +++ b/core/src/main/java/com/terning/core/designsystem/component/button/SortingButton.kt @@ -1,7 +1,6 @@ package com.terning.core.designsystem.component.button import androidx.compose.foundation.Image -import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.padding import androidx.compose.material3.Text @@ -11,6 +10,7 @@ import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource import androidx.compose.ui.unit.dp import com.terning.core.R +import com.terning.core.designsystem.component.bottomsheet.SortBy import com.terning.core.designsystem.theme.Black import com.terning.core.designsystem.theme.TerningTheme import com.terning.core.extension.noRippleClickable @@ -27,13 +27,7 @@ fun SortingButton( ) { Text( text = stringResource( - id = when (sortBy) { - 1 -> R.string.sort_by_shortest - 2 -> R.string.sort_by_longest - 3 -> R.string.sort_by_scrap - 4 -> R.string.sort_by_view_count - else -> R.string.sort_by_earliest - } + id = SortBy.entries[sortBy].type ), style = TerningTheme.typography.button3, color = Black, From 73e093d5696aaf8f1603d1e0ebd11a9eb3ed02ca Mon Sep 17 00:00:00 2001 From: Hyobeen-Park Date: Thu, 11 Jul 2024 21:39:13 +0900 Subject: [PATCH 11/12] =?UTF-8?q?[CHORE/#32]=20=EB=B0=94=ED=85=80=EC=8B=9C?= =?UTF-8?q?=ED=8A=B8=20=EC=95=84=EC=9D=B4=ED=85=9C=20=EA=B0=9C=EC=88=98=20?= =?UTF-8?q?const=20val=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/bottomsheet/SortingBottomSheet.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortingBottomSheet.kt b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortingBottomSheet.kt index 1682fc739..9bc975eed 100644 --- a/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortingBottomSheet.kt +++ b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortingBottomSheet.kt @@ -62,7 +62,7 @@ fun SortingBottomSheet( .padding(horizontal = 24.dp), verticalArrangement = Arrangement.spacedBy(8.dp) ) { - items(5) { sortIndex -> + items(sortByCount) { sortIndex -> Text( text = stringResource(id = SortBy.entries[sortIndex].type), style = TerningTheme.typography.button3, @@ -89,4 +89,6 @@ fun SortingBottomSheet( onDismissRequest = { onDismiss() }, sheetState = sheetState ) -} \ No newline at end of file +} + +private const val sortByCount = 5 \ No newline at end of file From 244b8d97aab3e4bac0df59934a9be5023329a192 Mon Sep 17 00:00:00 2001 From: Hyobeen-Park Date: Thu, 11 Jul 2024 21:59:13 +0900 Subject: [PATCH 12/12] =?UTF-8?q?[CHORE/#32]=20=ED=8C=8C=EB=9D=BC=EB=AF=B8?= =?UTF-8?q?=ED=84=B0=20=EC=88=9C=EC=84=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../designsystem/component/bottomsheet/SortingBottomSheet.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortingBottomSheet.kt b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortingBottomSheet.kt index 9bc975eed..49ae29b21 100644 --- a/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortingBottomSheet.kt +++ b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/SortingBottomSheet.kt @@ -31,9 +31,9 @@ import kotlinx.coroutines.launch @OptIn(ExperimentalMaterial3Api::class) @Composable fun SortingBottomSheet( - modifier: Modifier = Modifier, onDismiss: () -> Unit, currentSortBy: Int, + modifier: Modifier = Modifier, newSortBy: MutableState = mutableStateOf(currentSortBy), ) { val scope = rememberCoroutineScope()