Skip to content

Commit

Permalink
[FEAT] [#5] 마이페이지 화면에 진입했을 때 네비게이션바가 보이도록 shoulShowBottomBar 조건 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
easyhooon committed Feb 15, 2024
1 parent e254750 commit a92d58a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import com.nexters.ilab.android.feature.uploadphoto.navigation.navigateToUploadP
import com.nexters.ilab.android.feature.uploadphoto.navigation.navigateToUploadCheck
import com.nexters.ilab.android.feature.home.navigation.HOME_ROUTE
import com.nexters.ilab.android.feature.home.navigation.navigateToHome
import com.nexters.ilab.android.feature.mypage.navigation.MY_PROFILE_ROUTE
import com.nexters.ilab.android.feature.mypage.navigation.navigateToMyPage
import com.nexters.ilab.android.feature.setting.navigation.navigateToSetting
import com.nexters.ilab.android.feature.uploadphoto.navigation.navigateToInputStyle
Expand Down Expand Up @@ -98,7 +99,7 @@ internal class MainNavController(
@Composable
fun shouldShowBottomBar(): Boolean {
val currentRoute = currentDestination?.route ?: return false
return currentRoute in MainTab
return currentRoute in MainTab || currentRoute == MY_PROFILE_ROUTE
}
}

Expand Down

0 comments on commit a92d58a

Please sign in to comment.