File tree Expand file tree Collapse file tree
app/src/main/java/com/flint/presentation/collectioncreate/component Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,33 +10,41 @@ import com.flint.core.designsystem.theme.FlintTheme
1010
1111@OptIn(ExperimentalMaterial3Api ::class )
1212@Composable
13- fun CollectionCreateBottomSheet () {
13+ fun CollectionAddFilmBottomSheet (
14+ onGalleryClick : () -> Unit ,
15+ onCoverdeleteClick : () -> Unit ,
16+ onDismiss : () -> Unit
17+ ) {
1418 val menuBottomSheetDataList = listOf (
1519 MenuBottomSheetData (
1620 label = " 갤러리에서 선택" ,
17- clickAction = {}
21+ clickAction = onGalleryClick
1822 ),
1923 MenuBottomSheetData (
2024 label = " 커버 사진 삭제" ,
2125 color = FlintTheme .colors.error500,
22- clickAction = {}
26+ clickAction = onCoverdeleteClick
2327 )
2428 )
2529
2630 val sheetState = rememberModalBottomSheetState()
2731
2832 MenuBottomSheet (
2933 menuBottomSheetDataList = menuBottomSheetDataList,
30- onDismiss = {} ,
34+ onDismiss = onDismiss ,
3135 sheetState = sheetState
3236 )
3337}
3438
3539@OptIn(ExperimentalMaterial3Api ::class )
3640@Preview
3741@Composable
38- private fun CollectionCreateBottomSheetPreview () {
42+ private fun CollectionAddFilmBottomSheetPreview () {
3943 FlintTheme {
40- CollectionCreateBottomSheet ()
44+ CollectionAddFilmBottomSheet (
45+ onGalleryClick = {},
46+ onCoverdeleteClick = {},
47+ onDismiss = {}
48+ )
4149 }
4250}
Original file line number Diff line number Diff line change 11package com.flint.presentation.collectioncreate.component
22
3- import androidx.compose.foundation.background
43import androidx.compose.runtime.Composable
5- import androidx.compose.ui.Modifier
6- import androidx.compose.ui.graphics.Color
74import androidx.compose.ui.tooling.preview.Preview
85import com.flint.R
96import com.flint.core.designsystem.component.modal.TwoButtonModal
107import com.flint.core.designsystem.theme.FlintTheme
118
129@Composable
13- private fun CollectionCreateModal () {
10+ fun CollectionCreateFilmDeleteModal (
11+ onConfirm : () -> Unit ,
12+ onDismiss : () -> Unit
13+ ) {
1414 TwoButtonModal (
15- modifier = Modifier .background(Color .White ),
1615 message = " 작성한 내용이 모두 삭제돼요." ,
1716 cancelText = " 취소" ,
1817 confirmText = " 삭제" ,
19- onConfirm = {} ,
20- onDismiss = {} ,
18+ onConfirm = onConfirm ,
19+ onDismiss = onDismiss ,
2120 title = " 작품을 삭제할까요?" ,
2221 icon = R .drawable.ic_gradient_trash,
2322 isDestructive = true
@@ -26,8 +25,11 @@ private fun CollectionCreateModal() {
2625
2726@Preview(showBackground = true )
2827@Composable
29- private fun CollectionCreateModalPreview () {
28+ private fun CollectionCreateFilmDeleteModalPreview () {
3029 FlintTheme {
31- CollectionCreateModal ()
30+ CollectionCreateFilmDeleteModal (
31+ onConfirm = {},
32+ onDismiss = {}
33+ )
3234 }
3335}
Original file line number Diff line number Diff line change 11[versions ]
22compileSdk = " 36"
3- minSdk = " 30 "
3+ minSdk = " 27 "
44targetSdk = " 36"
55versionCode = " 1"
66versionName = " 1.0.0"
You can’t perform that action at this time.
0 commit comments