diff --git a/composeApp/src/commonMain/kotlin/team/aliens/dms/kmp/navigation/authorized/AuthNavigation.kt b/composeApp/src/commonMain/kotlin/team/aliens/dms/kmp/navigation/authorized/AuthNavigation.kt index c84cc92..ef55b49 100644 --- a/composeApp/src/commonMain/kotlin/team/aliens/dms/kmp/navigation/authorized/AuthNavigation.kt +++ b/composeApp/src/commonMain/kotlin/team/aliens/dms/kmp/navigation/authorized/AuthNavigation.kt @@ -22,6 +22,8 @@ internal fun NavGraphBuilder.authNavigation( signIn( navigateToMain = { }, navigateToSignUp = { }, + navigateToFindId = { }, + navigateToFindPassword = { }, ) } } diff --git a/feature/signin/src/commonMain/kotlin/team/aliens/dms/kmp/feature/signin/navigation/SignInNavigation.kt b/feature/signin/src/commonMain/kotlin/team/aliens/dms/kmp/feature/signin/navigation/SignInNavigation.kt index 98fc6b3..c80e476 100644 --- a/feature/signin/src/commonMain/kotlin/team/aliens/dms/kmp/feature/signin/navigation/SignInNavigation.kt +++ b/feature/signin/src/commonMain/kotlin/team/aliens/dms/kmp/feature/signin/navigation/SignInNavigation.kt @@ -10,9 +10,16 @@ const val NAVIGATION_SIGN_IN = "signIn" fun NavGraphBuilder.signIn( navigateToMain: () -> Unit, navigateToSignUp: () -> Unit, + navigateToFindId: () -> Unit, + navigateToFindPassword: () -> Unit, ) { composable(NAVIGATION_SIGN_IN) { - SignIn() + SignIn( + navigateToMain = navigateToMain, + navigateToSignUp = navigateToSignUp, + navigateToFindId = navigateToFindId, + navigateToFindPassword = navigateToFindPassword, + ) } } diff --git a/feature/signin/src/commonMain/kotlin/team/aliens/dms/kmp/feature/signin/ui/SignInScreen.kt b/feature/signin/src/commonMain/kotlin/team/aliens/dms/kmp/feature/signin/ui/SignInScreen.kt index dec2521..331aa7c 100644 --- a/feature/signin/src/commonMain/kotlin/team/aliens/dms/kmp/feature/signin/ui/SignInScreen.kt +++ b/feature/signin/src/commonMain/kotlin/team/aliens/dms/kmp/feature/signin/ui/SignInScreen.kt @@ -31,11 +31,18 @@ import team.aliens.dms.kmp.feature.signin.viewmodel.SignInState import team.aliens.dms.kmp.feature.signin.viewmodel.SignInViewModel @Composable -internal fun SignIn() { +internal fun SignIn( + navigateToMain: () -> Unit, + navigateToSignUp: () -> Unit, + navigateToFindId: () -> Unit, + navigateToFindPassword: () -> Unit, +) { val viewModel: SignInViewModel = koinInject() val state by viewModel.state.collectAsState() SignInScreen( + navigateToMain = navigateToMain, + navigateToSignUp = navigateToSignUp, state = state, onAccountIdChange = viewModel::setAccountId, onPasswordChange = viewModel::setPassword, @@ -44,6 +51,8 @@ internal fun SignIn() { @Composable fun SignInScreen( + navigateToMain: () -> Unit, + navigateToSignUp: () -> Unit, state: SignInState, onAccountIdChange: (String) -> Unit, onPasswordChange: (String) -> Unit, @@ -85,7 +94,7 @@ fun SignInScreen( .horizontalPadding() .bottomPadding(16.dp), text = "회원가입 하기", - onClick = { }, + onClick = navigateToSignUp, ) } }