Skip to content
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
d84676a
#268 [remove]: 나의 여정 퀘스트 다시보기 패키지 이동
znayeonzn Feb 24, 2026
f0f58b4
#268 [feat]: 공통 여정 퀘스트 돌아보기 UI
znayeonzn Feb 24, 2026
3c76f91
#268 [feat]: 네비 연결
znayeonzn Feb 24, 2026
a491d58
#268 [add]: icon 추가
znayeonzn Feb 25, 2026
5c1b171
#268 [add]: icon 추가
znayeonzn Feb 25, 2026
cb29c4a
#268 [feat]: 추가옵션 바텀시트 구현
znayeonzn Feb 25, 2026
d54b372
#268 [feat]: 스낵바 icon 파라미터 추가
znayeonzn Feb 25, 2026
4c0d871
#268 [move]: all 패키지로 이동
znayeonzn Feb 26, 2026
93fa701
#268 [feat]: 공통퀘스트 나의 답변 UI 구현
znayeonzn Feb 26, 2026
e5d0ee3
#268 [feat]: MyAnswer 컴포넌트 구현
znayeonzn Feb 26, 2026
60f9292
#268 [feat]: 나의 답변 상세 페이지 구현
znayeonzn Feb 26, 2026
f53f2d3
#268 [feat]: 공통퀘스트 네비 연결
znayeonzn Feb 26, 2026
6f29f00
#268 [mod]: 분기처리 수정
znayeonzn Feb 26, 2026
1d71455
#278 [merge] : develop 브랜치 반영
znayeonzn Feb 26, 2026
fa19a72
#278 [feat] : snackBar iconType 추가
znayeonzn Feb 26, 2026
2ac162e
#278 [chore] : ktlint format
znayeonzn Feb 26, 2026
582a749
#278 [feat] : 상세 답변 topBar component 분리
znayeonzn Feb 27, 2026
eebf0ca
#278 [mod] : 코리 반영
znayeonzn Feb 27, 2026
a80f199
#278 [mod] : snackBar 타입에 message 추가
znayeonzn Feb 28, 2026
533afa9
#278 [mod] : OptionType sealed class 로 분리
znayeonzn Feb 28, 2026
7e9818d
#278 [mod] : 코드리뷰 반영
znayeonzn Feb 28, 2026
5348a26
#278 [chore] : ktlint format
znayeonzn Feb 28, 2026
5977911
#278 [chore] : 함수명 변경
znayeonzn Feb 28, 2026
a45233b
Merge branch 'develop' of https://github.com/36-APPJAM-HEARTZ/ByeBoo-…
sohee6989 Mar 1, 2026
7bbf351
Merge from origin branch
sohee6989 Mar 1, 2026
6be15c5
#278 [chore]: ktlint 체크
sohee6989 Mar 1, 2026
f18548e
#278 [chore]: ktlint 체크
sohee6989 Mar 1, 2026
58534eb
#278 [refactor]: 몇몇 화면 리팩토링
sohee6989 Mar 1, 2026
c0283a0
#278 [chore]: 파일명 변경
sohee6989 Mar 1, 2026
744a2e2
#278 [chore]: 뷰모델 import 경로 수정
sohee6989 Mar 1, 2026
6d3f7db
#278 [chore]: 닉네임 하드코딩 된 것 변경
sohee6989 Mar 1, 2026
4de9028
#278 [chore]: 제목 요구사항 변경 반영
sohee6989 Mar 1, 2026
c27bdf0
#278 [feat]: 날짜 변경 공통 함수 구현
sohee6989 Mar 1, 2026
b934dda
#278 [refactor]: 자잘한 리팩토링
sohee6989 Mar 1, 2026
e3f5289
#278 [feat]: QuestCommonTitle 구현
sohee6989 Mar 1, 2026
a917937
#278 [chore]: 나의 답변 확인 / 세부 화면 state, viewmodel 분리 및 답변 확인 하는 방법 변경
sohee6989 Mar 1, 2026
80a00c4
#278 [chore]: ktlint 체크
sohee6989 Mar 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.res.vectorResource
import androidx.compose.ui.unit.dp
import com.byeboo.app.R
import com.byeboo.app.core.designsystem.type.CustomSnackBarType
import com.byeboo.app.core.designsystem.ui.theme.ByeBooTheme

@Composable
fun CustomSnackBar(
message: String,
iconType: CustomSnackBarType,
modifier: Modifier = Modifier,
) {
Row(
Expand All @@ -35,7 +36,7 @@ fun CustomSnackBar(
verticalAlignment = Alignment.CenterVertically,
) {
Icon(
imageVector = ImageVector.vectorResource(id = R.drawable.ic_alert),
imageVector = ImageVector.vectorResource(id = iconType.icon),
contentDescription = "알림",
tint = Color.Unspecified,
)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.byeboo.app.core.designsystem.component.snackbar

import androidx.compose.material3.SnackbarDuration
import androidx.compose.material3.SnackbarVisuals
import com.byeboo.app.core.designsystem.type.CustomSnackBarType

class CustomSnackBarVisuals(
override val message: String,
val type: CustomSnackBarType,
override val actionLabel: String? = null,
override val withDismissAction: Boolean = false,
override val duration: SnackbarDuration = SnackbarDuration.Short,
) : SnackbarVisuals
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package com.byeboo.app.core.designsystem.event

import androidx.compose.runtime.staticCompositionLocalOf
import com.byeboo.app.core.designsystem.type.CustomSnackBarType

val LocalSnackBarTrigger =
staticCompositionLocalOf<(String) -> Unit> {
staticCompositionLocalOf<(String, CustomSnackBarType) -> Unit> {
error("No SnackBar provided")
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.byeboo.app.core.designsystem.type

import androidx.annotation.DrawableRes
import com.byeboo.app.R

enum class CustomSnackBarType(
@DrawableRes val icon: Int,
) {
ALERT(
icon = R.drawable.ic_alert,
),

SUCCESS(
icon = R.drawable.ic_success,
),
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fun UserInfoRoute(
when (effect) {
is UserInfoSideEffect.NavigateToLoading -> navigateToLoading()
is UserInfoSideEffect.ShowSnackBar -> {
showSnackBar(effect.message)
showSnackBar(effect.message, effect.iconType)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.byeboo.app.presentation.auth.userinfo

import com.byeboo.app.core.designsystem.type.CustomSnackBarType
import com.byeboo.app.domain.model.auth.Feeling
import com.byeboo.app.domain.model.auth.NicknameValidationResult
import com.byeboo.app.domain.model.auth.QuestStyle
Expand All @@ -17,5 +18,6 @@ sealed interface UserInfoSideEffect {

data class ShowSnackBar(
val message: String,
val iconType: CustomSnackBarType,
) : UserInfoSideEffect
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.byeboo.app.presentation.auth.userinfo

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.byeboo.app.core.designsystem.type.CustomSnackBarType
import com.byeboo.app.core.util.MixpanelUtil
import com.byeboo.app.domain.model.auth.Feeling
import com.byeboo.app.domain.model.auth.NicknameValidationResult
Expand Down Expand Up @@ -147,7 +148,10 @@ class UserInfoViewModel
} else {
hasSubmitted = false
_sideEffect.emit(
UserInfoSideEffect.ShowSnackBar("서버에 연결할 수 없습니다. 잠시 후 시도해 주세요."),
UserInfoSideEffect.ShowSnackBar(
"서버에 연결할 수 없습니다. 잠시 후 시도해 주세요.",
CustomSnackBarType.ALERT,
),
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ fun HomeRoute(
is HomeSideEffect.NavigateToOffboardingCompletedGuide -> navigateToOffboardingCompletedGuide()
is HomeSideEffect.NavigateToOffboardingNewJourney -> navigateToOffboardingNewJourney()
is HomeSideEffect.ShowSnackBar -> {
showSnackBar(effect.message)
showSnackBar(effect.message, effect.iconType)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.byeboo.app.presentation.home

import com.byeboo.app.core.designsystem.type.CustomSnackBarType
import com.byeboo.app.core.model.quest.QuestType
import com.byeboo.app.domain.model.home.HomeStatus

Expand Down Expand Up @@ -32,5 +33,6 @@ sealed interface HomeSideEffect {

data class ShowSnackBar(
val message: String,
val iconType: CustomSnackBarType,
) : HomeSideEffect
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.byeboo.app.presentation.home

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.byeboo.app.core.designsystem.type.CustomSnackBarType
import com.byeboo.app.core.util.MixpanelUtil
import com.byeboo.app.domain.model.JourneyStatusType
import com.byeboo.app.domain.model.home.HomeStatus
Expand Down Expand Up @@ -78,7 +79,10 @@ class HomeViewModel
if (!errorMessage.contains("HTTP 404")) {
hasError = true
_sideEffect.emit(
HomeSideEffect.ShowSnackBar("서버에 연결할 수 없습니다. 잠시 후 시도해 주세요."),
HomeSideEffect.ShowSnackBar(
message = "서버에 연결할 수 없습니다. 잠시 후 시도해 주세요.",
iconType = CustomSnackBarType.ALERT,
),
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fun HomeAmuletRoute(
viewModel.sideEffect.collect { effect ->
when (effect) {
is HomeAmuletSideEffect.NavigateToHomeOnboarding -> navigateToHomeOnboarding()
is HomeAmuletSideEffect.ShowSnackBar -> showSnackBar(effect.message)
is HomeAmuletSideEffect.ShowSnackBar -> showSnackBar(effect.message, effect.iconType)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.byeboo.app.presentation.home.homeamulet

import com.byeboo.app.R
import com.byeboo.app.core.designsystem.type.CustomSnackBarType

data class HomeAmuletState(
val journey: AmuletType = AmuletType.EMOTION_FACE,
Expand All @@ -13,6 +14,7 @@ sealed interface HomeAmuletSideEffect {

data class ShowSnackBar(
val message: String,
val iconType: CustomSnackBarType,
) : HomeAmuletSideEffect
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.byeboo.app.presentation.home.homeamulet

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.byeboo.app.core.designsystem.type.CustomSnackBarType
import com.byeboo.app.core.util.MixpanelUtil
import com.byeboo.app.domain.repository.auth.UserRepository
import com.byeboo.app.domain.repository.quest.QuestStateRepository
Expand Down Expand Up @@ -68,7 +69,10 @@ class HomeAmuletViewModel
)
}.onFailure {
_sideEffect.emit(
HomeAmuletSideEffect.ShowSnackBar("서버에 연결할 수 없습니다. 잠시 후 시도해 주세요."),
HomeAmuletSideEffect.ShowSnackBar(
message = "서버에 연결할 수 없습니다. 잠시 후 시도해 주세요.",
iconType = CustomSnackBarType.ALERT,
),
)
}
}
Expand Down
15 changes: 15 additions & 0 deletions app/src/main/java/com/byeboo/app/presentation/main/MainNavHost.kt
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,21 @@ fun MainNavHost(
navOptions = clearStackNavOptions,
)
},
navigateToQuestCommonAnswer = { answerId ->
navigator.navigateToQuestCommonAnswer(
answerId = answerId,
navOptions = clearStackNavOptions,
)
},
navigateToQuestMyAnswers = {
navigator.navigateToQuestMyAnswers(navOptions = clearStackNavOptions)
},
navigateToQuestMyAnswerDetail = { answerId ->
navigator.navigateToQuestMyAnswerDetail(
answerId = answerId,
navOptions = clearStackNavOptions,
)
},
Comment on lines +142 to +156
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

상세 화면 네비게이션에 clearStackNavOptions 사용 검토 필요

navigateToQuestCommonAnswer, navigateToQuestMyAnswers, navigateToQuestMyAnswerDetailclearStackNavOptions를 사용하면 전체 네비게이션 스택이 삭제됩니다. 이로 인해 사용자가 상세 화면에서 뒤로가기를 할 수 없게 됩니다.

다른 상세/편집 화면들(예: Line 109-115의 navigateToQuestRecordingEdit)은 keepStackNavOptions를 사용하여 뒤로가기를 지원합니다. 의도된 동작이 아니라면 keepStackNavOptions 사용을 권장합니다.

🛠️ 수정 제안
             navigateToQuestCommonAnswer = { answerId ->
                 navigator.navigateToQuestCommonAnswer(
                     answerId = answerId,
-                    navOptions = clearStackNavOptions,
+                    navOptions = keepStackNavOptions,
                 )
             },
             navigateToQuestMyAnswers = {
-                navigator.navigateToQuestMyAnswers(navOptions = clearStackNavOptions)
+                navigator.navigateToQuestMyAnswers(navOptions = keepStackNavOptions)
             },
             navigateToQuestMyAnswerDetail = { answerId ->
                 navigator.navigateToQuestMyAnswerDetail(
                     answerId = answerId,
-                    navOptions = clearStackNavOptions,
+                    navOptions = keepStackNavOptions,
                 )
             },
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
navigateToQuestCommonAnswer = { answerId ->
navigator.navigateToQuestCommonAnswer(
answerId = answerId,
navOptions = clearStackNavOptions,
)
},
navigateToQuestMyAnswers = {
navigator.navigateToQuestMyAnswers(navOptions = clearStackNavOptions)
},
navigateToQuestMyAnswerDetail = { answerId ->
navigator.navigateToQuestMyAnswerDetail(
answerId = answerId,
navOptions = clearStackNavOptions,
)
},
navigateToQuestCommonAnswer = { answerId ->
navigator.navigateToQuestCommonAnswer(
answerId = answerId,
navOptions = keepStackNavOptions,
)
},
navigateToQuestMyAnswers = {
navigator.navigateToQuestMyAnswers(navOptions = keepStackNavOptions)
},
navigateToQuestMyAnswerDetail = { answerId ->
navigator.navigateToQuestMyAnswerDetail(
answerId = answerId,
navOptions = keepStackNavOptions,
)
},
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/src/main/java/com/byeboo/app/presentation/main/MainNavHost.kt` around
lines 142 - 156, 현재 navigateToQuestCommonAnswer, navigateToQuestMyAnswers,
navigateToQuestMyAnswerDetail에서 상세 화면으로 이동할 때 clearStackNavOptions를 사용해 네비게이션 스택
전체를 삭제하고 있어 뒤로가기 불가능 상태가 됩니다; 의도한 동작이 아니라면 이 세 곳에서 clearStackNavOptions 대신
keepStackNavOptions를 사용하도록 수정하여 기존 스택을 유지하고 뒤로가기를 허용하세요 (참조 심볼:
navigateToQuestCommonAnswer, navigateToQuestMyAnswers,
navigateToQuestMyAnswerDetail, clearStackNavOptions, keepStackNavOptions).

navigateUp = navigator::navigateUp,
paddingValues = paddingValues,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ import com.byeboo.app.presentation.quest.behavior.navigation.navigateToQuestBeha
import com.byeboo.app.presentation.quest.behavior.navigation.navigateToQuestBehaviorComplete
import com.byeboo.app.presentation.quest.navigation.Quest
import com.byeboo.app.presentation.quest.navigation.navigateToQuest
import com.byeboo.app.presentation.quest.navigation.navigateToQuestCommonAnswer
import com.byeboo.app.presentation.quest.navigation.navigateToQuestMyAnswerDetail
import com.byeboo.app.presentation.quest.navigation.navigateToQuestMyAnswers
import com.byeboo.app.presentation.quest.navigation.navigateToQuestReview
import com.byeboo.app.presentation.quest.navigation.navigateToQuestStart
import com.byeboo.app.presentation.quest.navigation.navigateToQuestTip
Expand Down Expand Up @@ -198,6 +201,24 @@ class MainNavigator(
navController.navigateToQuestBehaviorComplete(questId = questId, navOptions = navOptions)
}

fun navigateToQuestCommonAnswer(
answerId: Long,
navOptions: NavOptions? = null,
) {
navController.navigateToQuestCommonAnswer(answerId = answerId, navOptions = navOptions)
}

fun navigateToQuestMyAnswers(navOptions: NavOptions? = null) {
navController.navigateToQuestMyAnswers(navOptions = navOptions)
}

fun navigateToQuestMyAnswerDetail(
answerId: Long,
navOptions: NavOptions? = null,
) {
navController.navigateToQuestMyAnswerDetail(answerId = answerId, navOptions = navOptions)
}

fun navigateToQuestReview(
questId: Long,
navOptions: NavOptions? = null,
Expand Down
15 changes: 12 additions & 3 deletions app/src/main/java/com/byeboo/app/presentation/main/MainScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ import androidx.lifecycle.compose.collectAsStateWithLifecycle
import androidx.navigation.navOptions
import com.byeboo.app.core.designsystem.component.backhandler.ByeBooBackHandler
import com.byeboo.app.core.designsystem.component.snackbar.CustomSnackBar
import com.byeboo.app.core.designsystem.component.snackbar.CustomSnackBarVisuals
import com.byeboo.app.core.designsystem.event.LocalSnackBarTrigger
import com.byeboo.app.core.designsystem.type.CustomSnackBarType
import com.byeboo.app.core.designsystem.ui.theme.ByeBooTheme
import com.byeboo.app.core.util.screenHeightDp
import com.byeboo.app.core.util.screenWidthDp
Expand All @@ -46,12 +48,17 @@ fun MainScreen(
val status by viewModel.journeyStatus.collectAsStateWithLifecycle()
val isMoveToQuestHome by viewModel.questHomeNavigation.collectAsStateWithLifecycle()

val onShowSnackBar: (String) -> Unit = { message ->
val onShowSnackBar: (String, CustomSnackBarType) -> Unit = { message, type ->
scope.launch {
snackBarHostState.currentSnackbarData?.dismiss()
val job =
launch {
snackBarHostState.showSnackbar(message)
snackBarHostState.showSnackbar(
CustomSnackBarVisuals(
message = message,
type = type,
),
)
}
delay(3000L)
job.cancel()
Expand Down Expand Up @@ -130,7 +137,9 @@ fun MainScreen(
.padding(horizontal = screenWidthDp(24.dp))
.padding(bottom = snackBarBottomInset),
) { snackBar ->
CustomSnackBar(message = snackBar.visuals.message)
val customVisuals = snackBar.visuals as? CustomSnackBarVisuals
val iconType = customVisuals?.type ?: CustomSnackBarType.ALERT
CustomSnackBar(message = snackBar.visuals.message, iconType = iconType)
}
},
bottomBar = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ fun MyPageRoute(
is MyPageSideEffect.NavigateToTutorial -> navigateToTutorial()
is MyPageSideEffect.NavigateToSplash -> navigateToSplash()
is MyPageSideEffect.NavigateToBlockedUsers -> navigateToBlockedUsers()
is MyPageSideEffect.ShowSnackBar -> showSnackBar(effect.message)
is MyPageSideEffect.ShowSnackBar -> showSnackBar(effect.message, effect.iconType)
}
}
}
Expand Down Expand Up @@ -498,7 +498,6 @@ private fun ByeBooUniverseSection(
style = ByeBooTheme.typography.body2,
)
}

Spacer(modifier = Modifier.height(screenHeightDp(12.dp)))
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.byeboo.app.presentation.mypage

import androidx.compose.runtime.Immutable
import com.byeboo.app.core.designsystem.type.CustomSnackBarType

@Immutable
data class MyPageState(
Expand Down Expand Up @@ -38,5 +39,6 @@ sealed interface MyPageSideEffect {

data class ShowSnackBar(
val message: String,
val iconType: CustomSnackBarType,
) : MyPageSideEffect
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.byeboo.app.presentation.mypage
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.byeboo.app.BuildConfig
import com.byeboo.app.core.designsystem.type.CustomSnackBarType
import com.byeboo.app.core.util.MixpanelUtil
import com.byeboo.app.domain.repository.auth.UserRepository
import com.byeboo.app.domain.repository.fcm.FcmTokenRepository
Expand Down Expand Up @@ -190,7 +191,10 @@ class MyPageViewModel
_sideEffect.emit(MyPageSideEffect.NavigateToSplash)
}.onFailure {
_sideEffect.emit(
MyPageSideEffect.ShowSnackBar(message = "서버에 연결할 수 없습니다. 잠시 후 시도해 주세요."),
MyPageSideEffect.ShowSnackBar(
message = "서버에 연결할 수 없습니다. 잠시 후 시도해 주세요.",
iconType = CustomSnackBarType.ALERT,
),
)
}
}
Expand All @@ -206,7 +210,10 @@ class MyPageViewModel
_sideEffect.emit(MyPageSideEffect.NavigateToSplash)
}.onFailure {
_sideEffect.emit(
MyPageSideEffect.ShowSnackBar(message = "서버에 연결할 수 없습니다. 잠시 후 시도해 주세요."),
MyPageSideEffect.ShowSnackBar(
message = "서버에 연결할 수 없습니다. 잠시 후 시도해 주세요.",
iconType = CustomSnackBarType.ALERT,
),
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fun BlockedUsersRoute(
viewModel.sideEffect.collect { effect ->
when (effect) {
is BlockedUsersSideEffect.NavigateUp -> navigateUp()
is BlockedUsersSideEffect.ShowSnackBar -> showSnackBar(effect.message)
is BlockedUsersSideEffect.ShowSnackBar -> showSnackBar(effect.message, effect.iconType)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.byeboo.app.presentation.mypage.blockedusers

import androidx.compose.runtime.Immutable
import com.byeboo.app.core.designsystem.type.CustomSnackBarType
import com.byeboo.app.presentation.mypage.type.User
import kotlinx.collections.immutable.ImmutableList
import kotlinx.collections.immutable.persistentListOf
Expand All @@ -16,5 +17,6 @@ sealed interface BlockedUsersSideEffect {

data class ShowSnackBar(
val message: String,
val iconType: CustomSnackBarType,
) : BlockedUsersSideEffect
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fun EditProfileRoute(
viewModel.sideEffect.collect { effect ->
when (effect) {
is EditProfileSideEffect.NavigateToMyPage -> navigateToMyPage()
is EditProfileSideEffect.ShowSnackBar -> showSnackBar(effect.message)
is EditProfileSideEffect.ShowSnackBar -> showSnackBar(effect.message, effect.iconType)
}
}
}
Expand Down
Loading