Skip to content

Commit

Permalink
[FEATURE]#74 : 차단된 리스트 화면 전환 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Aug 3, 2024
1 parent 85d62e2 commit d17ad15
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/kotlin/com/bff/wespot/AppNavGraphs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import androidx.navigation.NavDestination.Companion.hierarchy
import androidx.navigation.NavGraph
import androidx.navigation.NavHostController
import com.bff.wespot.entire.screen.screen.destinations.AccountSettingScreenDestination
import com.bff.wespot.entire.screen.screen.destinations.BlockListScreenDestination
import com.bff.wespot.entire.screen.screen.destinations.EntireScreenDestination
import com.bff.wespot.entire.screen.screen.destinations.NotificationSettingScreenDestination
import com.bff.wespot.entire.screen.screen.destinations.RevokeConfirmScreenDestination
Expand Down Expand Up @@ -83,6 +84,7 @@ object AppNavGraphs {
AccountSettingScreenDestination,
RevokeScreenDestination,
RevokeConfirmScreenDestination,
BlockListScreenDestination,
).routedIn(this)
.associateBy { it.route }
}
Expand Down
7 changes: 7 additions & 0 deletions app/src/main/kotlin/com/bff/wespot/CommonNavGraphNavigator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ package com.bff.wespot

import androidx.navigation.NavController
import com.bff.wespot.entire.screen.screen.AccountSettingNavigator
import com.bff.wespot.entire.screen.screen.BlockListNavigator
import com.bff.wespot.entire.screen.screen.EntireNavigator
import com.bff.wespot.entire.screen.screen.NotificationSettingNavigator
import com.bff.wespot.entire.screen.screen.SettingNavigator
import com.bff.wespot.entire.screen.screen.destinations.AccountSettingScreenDestination
import com.bff.wespot.entire.screen.screen.destinations.BlockListScreenDestination
import com.bff.wespot.entire.screen.screen.destinations.NotificationSettingScreenDestination
import com.bff.wespot.entire.screen.screen.destinations.RevokeConfirmScreenDestination
import com.bff.wespot.entire.screen.screen.destinations.RevokeScreenDestination
Expand Down Expand Up @@ -56,6 +58,7 @@ class CommonNavGraphNavigator(
AccountSettingNavigator,
RevokeNavigator,
RevokeConfirmNavigator,
BlockListNavigator,
VotingNavigator,
VoteResultNavigator,
VoteStorageNavigator,
Expand Down Expand Up @@ -131,4 +134,8 @@ class CommonNavGraphNavigator(
override fun navigateToIndividualVote(args: IndividualVoteArgs) {
navController.navigate(IndividualVoteScreenDestination(args) within navGraph)
}

override fun navigateToBlockListScreen() {
navController.navigate(BlockListScreenDestination within navGraph)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ interface SettingNavigator {
fun navigateUp()
fun navigateToNotificationSetting()
fun navigateToAccountSetting()
fun navigateToBlockListScreen()
}

@OptIn(ExperimentalMaterial3Api::class)
Expand Down Expand Up @@ -83,6 +84,7 @@ fun SettingScreen(
)

EntireListItem(text = stringResource(R.string.block_list)) {
navigator.navigateToBlockListScreen()
}

EntireListItem(text = stringResource(R.string.account_setting)) {
Expand Down

0 comments on commit d17ad15

Please sign in to comment.