Skip to content

Commit 94aaa4c

Browse files
committed
[BOOK-355] feat: Guest Mode에서 설정 알림 메뉴 비노출
1 parent 4069548 commit 94aaa4c

File tree

1 file changed

+15
-13
lines changed
  • feature/settings/src/main/kotlin/com/ninecraft/booket/feature/settings

1 file changed

+15
-13
lines changed

feature/settings/src/main/kotlin/com/ninecraft/booket/feature/settings/SettingsUi.kt

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,21 @@ internal fun SettingsUi(
9898
)
9999
},
100100
)
101-
SettingItem(
102-
title = stringResource(R.string.settings_notification),
103-
onItemClick = {
104-
state.eventSink(SettingsUiEvent.OnNotificationClick)
105-
},
106-
action = {
107-
Icon(
108-
imageVector = ImageVector.vectorResource(id = designR.drawable.ic_chevron_right),
109-
contentDescription = "Right Chevron Icon",
110-
tint = Color.Unspecified,
111-
)
112-
},
113-
)
101+
if (!state.isGuestMode) {
102+
SettingItem(
103+
title = stringResource(R.string.settings_notification),
104+
onItemClick = {
105+
state.eventSink(SettingsUiEvent.OnNotificationClick)
106+
},
107+
action = {
108+
Icon(
109+
imageVector = ImageVector.vectorResource(id = designR.drawable.ic_chevron_right),
110+
contentDescription = "Right Chevron Icon",
111+
tint = Color.Unspecified,
112+
)
113+
},
114+
)
115+
}
114116
SettingItem(
115117
title = stringResource(R.string.settings_terms_of_service),
116118
onItemClick = {

0 commit comments

Comments
 (0)