@@ -38,6 +38,7 @@ import com.texthip.thip.ui.common.buttons.ExpandableFloatingButton
3838import com.texthip.thip.ui.common.buttons.FabMenuItem
3939import com.texthip.thip.ui.common.buttons.FilterButton
4040import com.texthip.thip.ui.common.header.HeaderMenuBarTab
41+ import com.texthip.thip.ui.common.modal.DialogPopup
4142import com.texthip.thip.ui.common.modal.ToastWithDate
4243import com.texthip.thip.ui.common.topappbar.DefaultTopAppBar
4344import com.texthip.thip.ui.group.note.component.CommentBottomSheet
@@ -80,6 +81,8 @@ fun GroupNoteScreen() {
8081
8182 var isMenuBottomSheetVisible by rememberSaveable { mutableStateOf(false ) }
8283
84+ var isPinDialogVisible by remember { mutableStateOf(false ) }
85+
8386 var showToast by remember { mutableStateOf(false ) }
8487
8588 // 토스트 3초
@@ -91,7 +94,7 @@ fun GroupNoteScreen() {
9194 }
9295
9396 Box (
94- if (isCommentBottomSheetVisible || isMenuBottomSheetVisible) {
97+ if (isCommentBottomSheetVisible || isMenuBottomSheetVisible || isPinDialogVisible ) {
9598 Modifier
9699 .fillMaxSize()
97100 .blur(5 .dp)
@@ -206,6 +209,9 @@ fun GroupNoteScreen() {
206209 onLongPress = {
207210 selectedItemForMenu = item
208211 isMenuBottomSheetVisible = true
212+ },
213+ onPinClick = {
214+ isPinDialogVisible = true
209215 }
210216 )
211217
@@ -219,6 +225,9 @@ fun GroupNoteScreen() {
219225 onLongPress = {
220226 selectedItemForMenu = item
221227 isMenuBottomSheetVisible = true
228+ },
229+ onPinClick = {
230+ isPinDialogVisible = true
222231 }
223232 )
224233 }
@@ -330,6 +339,26 @@ fun GroupNoteScreen() {
330339 }
331340 )
332341 }
342+
343+ if (isPinDialogVisible) {
344+ Box (
345+ modifier = Modifier
346+ .fillMaxSize(),
347+ contentAlignment = Alignment .Center
348+ ) {
349+ DialogPopup (
350+ title = stringResource(R .string.pin_modal_title),
351+ description = stringResource(R .string.pin_modal_content),
352+ onConfirm = {
353+ // 핀하기 로직
354+ isPinDialogVisible = false
355+ },
356+ onCancel = {
357+ isPinDialogVisible = false
358+ }
359+ )
360+ }
361+ }
333362}
334363
335364@Preview
0 commit comments