Skip to content

Commit

Permalink
Merge pull request #113 from snuhcs-course/fix/signup-navigation
Browse files Browse the repository at this point in the history
fix: navigate to login page after signup
  • Loading branch information
thisisWooyeol authored Dec 7, 2023
2 parents 16c74c8 + d649ed9 commit cd5f25c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import androidx.hilt.navigation.compose.hiltViewModel
import com.goliath.emojihub.LocalNavController
import com.goliath.emojihub.NavigationDestination
import com.goliath.emojihub.navigateAsOrigin
import com.goliath.emojihub.ui.theme.Color
import com.goliath.emojihub.viewmodels.UserViewModel
import com.goliath.emojihub.views.components.CustomDialog
Expand Down Expand Up @@ -121,7 +123,10 @@ fun SignUpPage() {
if (showDialog) {
CustomDialog(
title = "완료",
body = "계정 생성이 완료되었습니다."
body = "계정 생성이 완료되었습니다.",
onDismissRequest = { showDialog = false },
dismiss = { showDialog = false },
confirm = { navController.navigateAsOrigin(NavigationDestination.Login) }
)
}
}
Expand Down

0 comments on commit cd5f25c

Please sign in to comment.